From 223299871d00bcecb4ee92a17ffc6a23a9e41e92 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Thu, 18 Apr 2019 21:40:21 -0500 Subject: [PATCH] Do not load if already loaded In case the resolver has some values already --- lib/dhall/ast.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/dhall/ast.rb b/lib/dhall/ast.rb index e256bac..55a60ee 100644 --- a/lib/dhall/ast.rb +++ b/lib/dhall/ast.rb @@ -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 -- 2.38.4