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

View File

@@ -180,7 +180,7 @@ module Liquid
else
input
end
rescue => e
rescue
input
end

View File

@@ -3,7 +3,7 @@ module Liquid
def self.slice_collection_using_each(collection, from, to)
segments = []
index = 0
yielded = 0
#yielded = 0 # not used
# Maintains Ruby 1.8.7 String#each behaviour on 1.9
return [collection] if non_blank_string?(collection)