Browse files

Merge pull request #13 from kachick/improve-remove_warnings

Fixing warnings in Ruby code. (lib/diff/lcs/internals.rb)
  • Loading branch information...
2 parents 0dc22d2 + 77dba95 commit 3965b70aef3828c10a284541f1342d0edd121827 @halostatue committed Jan 19, 2013
Showing with 8 additions and 8 deletions.
  1. +8 −8 lib/diff/lcs/internals.rb
View
16 lib/diff/lcs/internals.rb
@@ -258,14 +258,14 @@ def diff_direction(src, patchset, limit = nil)
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

0 comments on commit 3965b70

Please sign in to comment.