mirror of
https://github.com/kemko/liquid.git
synced 2026-01-01 15:55:40 +03:00
Avoid warnings for assigned but unused variable
This commit is contained in:
@@ -180,7 +180,7 @@ module Liquid
|
||||
else
|
||||
input
|
||||
end
|
||||
rescue => e
|
||||
rescue
|
||||
input
|
||||
end
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user