Skip to content

Commit

Permalink
Update steps.rb
Browse files Browse the repository at this point in the history
Update comment on `#previous_step?` to be accurate.
  • Loading branch information
artinboghosian authored Apr 13, 2024
1 parent 4b8d7f6 commit 802f43b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/wicked/controller/concerns/steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def future_step?(step_name)
current_step_index < step_index_for(step_name)
end

# will return true if the last step is the step passed in
# will return true if the previous step is the step passed in
def previous_step?(step_name)
return false unless current_and_given_step_exists?(step_name)
(current_step_index - 1) == step_index_for(step_name)
Expand Down

0 comments on commit 802f43b

Please sign in to comment.