Skip to content

Commit db925f2

Browse files
committed
BASERUBY fails because of .then not existing
1 parent cc7faa7 commit db925f2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

templates/template.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,9 @@ def template(name, write_to: nil)
308308

309309
def locals
310310
@locals ||=
311-
YAML.load_file(File.expand_path("../config.yml", __dir__)).then do |config|
311+
begin
312+
config = YAML.load_file(File.expand_path("../config.yml", __dir__))
313+
312314
{
313315
nodes: config.fetch("nodes").map { |node| NodeType.new(node) }.sort_by(&:name),
314316
tokens: config.fetch("tokens").map { |token| Token.new(token) },

0 commit comments

Comments
 (0)