mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-16 17:30:43 -07:00
Merge pull request #157 from stomar/avoid_warnings
Avoid warnings in Ruby 1.9.3
This commit is contained in:
@@ -172,6 +172,7 @@ module Liquid
|
||||
# Fetches an object starting at the local scope and then moving up the hierachy
|
||||
def find_variable(key)
|
||||
scope = @scopes.find { |s| s.has_key?(key) }
|
||||
variable = nil
|
||||
|
||||
if scope.nil?
|
||||
@environments.each do |e|
|
||||
|
||||
Reference in New Issue
Block a user