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