lib/grumlin/shortcuts_applyer.rb in grumlin-0.22.5 vs lib/grumlin/shortcuts_applyer.rb in grumlin-0.23.0
- old
+ new
@@ -28,13 +28,13 @@
shortcut = shortcuts[step.name]
next result << StepData.new(step.name, args: args, params: step.params) unless shortcut&.lazy?
t = shortcuts.__
- action = shortcut.apply(t, *args, **step.params)
- next if action.nil? || action == t # Shortcut did not add any steps
+ step = shortcut.apply(t, *args, **step.params)
+ next if step.nil? || step == t # Shortcut did not add any steps
- new_steps = call(Steps.from(action))
+ new_steps = call(Steps.from(step))
result.concat(new_steps.configuration_steps, new_steps.steps)
end
end
end
end