Skip to content

Commit

Permalink
Memoize env
Browse files Browse the repository at this point in the history
  • Loading branch information
crohr committed May 30, 2024
1 parent 05441ed commit 3b2edf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pkgr/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def vendor
end

def env
@table[:env].is_a?(Pkgr::Env) ? @table[:env] : Pkgr::Env.new(@table[:env])
@env ||= @table[:env].is_a?(Pkgr::Env) ? @table[:env] : Pkgr::Env.new(@table[:env])
end

def buildpacks
Expand Down

0 comments on commit 3b2edf1

Please sign in to comment.