Skip to content

Commit

Permalink
Fix early return behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
mattbrictson committed Jul 11, 2024
1 parent 0a4730f commit fcf9817
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/bundle_update_interactive/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ def version
desc "ui", "Update Gemfile.lock interactively", hide: true
def ui # rubocop:disable Metrics/AbcSize
report = generate_report
say("No gems to update.") || return if report.updateable_gems.empty?
say("No gems to update.") && return if report.updateable_gems.empty?

say
say legend
say
selected_gems = MultiSelect.prompt_for_gems_to_update(report.updateable_gems)
say("No gems to update.") || return if selected_gems.empty?
say("No gems to update.") && return if selected_gems.empty?

say "\nUpdating the following gems."
say
Expand Down

0 comments on commit fcf9817

Please sign in to comment.