summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenichi Kamiya <kachick1@gmail.com>2013-01-17 15:12:03 +0900
committerKenichi Kamiya <kachick1@gmail.com>2013-01-17 16:37:30 +0900
commit77dba95be2a561e0000d83749a1cdd23ad71b90c (patch)
tree05a389eb6eb8b29c1259a86fbef0a7beb82cb213
parent0dc22d241efa69d296b4c19812d51889e243404c (diff)
downloaddiff-lcs-77dba95be2a561e0000d83749a1cdd23ad71b90c.tar.gz
Fixing warnings in Ruby code.
- "assigned but unused variable"
-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