summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin Ziegler <austin@zieglers.ca>2013-01-19 10:11:45 -0800
committerAustin Ziegler <austin@zieglers.ca>2013-01-19 10:11:45 -0800
commit3965b70aef3828c10a284541f1342d0edd121827 (patch)
tree05a389eb6eb8b29c1259a86fbef0a7beb82cb213
parent0dc22d241efa69d296b4c19812d51889e243404c (diff)
parent77dba95be2a561e0000d83749a1cdd23ad71b90c (diff)
downloaddiff-lcs-3965b70aef3828c10a284541f1342d0edd121827.tar.gz
Merge pull request #13 from kachick/improve-remove_warnings
Fixing warnings in Ruby code. (lib/diff/lcs/internals.rb)
-rw-r--r--lib/diff/lcs/internals.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/diff/lcs/internals.rb b/lib/diff/lcs/internals.rb
index 373a18a..286efc8 100644
--- a/lib/diff/lcs/internals.rb
+++ b/lib/diff/lcs/internals.rb
@@ -258,14 +258,14 @@ module Diff::LCS::Internals # :nodoc:
no_left = (left_match == 0) && (left_miss >= 0)
no_right = (right_match == 0) && (right_miss >= 0)
- direction = case [no_left, no_right]
- when [false, true]
- :patch
- when [true, false]
- :unpatch
- else
- raise "The provided patchset does not appear to apply to the provided value as either source or destination value."
- end
+ case [no_left, no_right]
+ when [false, true]
+ :patch
+ when [true, false]
+ :unpatch
+ else
+ raise "The provided patchset does not appear to apply to the provided value as either source or destination value."
+ end
end
end
end