Avoid warnings for assigned but unused variable

This commit is contained in:
Marcus Stollsteimer
2012-11-18 10:20:07 +01:00
parent 90b40ffb4b
commit c79abf1f87
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -180,7 +180,7 @@ module Liquid
else else
input input
end end
rescue => e rescue
input input
end end
+1 -1
View File
@@ -3,7 +3,7 @@ module Liquid
def self.slice_collection_using_each(collection, from, to) def self.slice_collection_using_each(collection, from, to)
segments = [] segments = []
index = 0 index = 0
yielded = 0 #yielded = 0 # not used
# Maintains Ruby 1.8.7 String#each behaviour on 1.9 # Maintains Ruby 1.8.7 String#each behaviour on 1.9
return [collection] if non_blank_string?(collection) return [collection] if non_blank_string?(collection)