~singpolyma/dhall-ruby

223299871d00bcecb4ee92a17ffc6a23a9e41e92 — Stephen Paul Weber 3 years ago 791af02
Do not load if already loaded

In case the resolver has some values already
1 files changed, 2 insertions(+), 0 deletions(-)

M lib/dhall/ast.rb
M lib/dhall/ast.rb => lib/dhall/ast.rb +2 -0
@@ 1445,6 1445,8 @@ module Dhall

		class Expression
			def self.call(import_value)
				return import_value if import_value.is_a?(Dhall::Expression)

				Dhall.load_raw(import_value)
			end
		end