diff --git a/lib/bundle_update_interactive/cli.rb b/lib/bundle_update_interactive/cli.rb index 3865b6e..7a76942 100644 --- a/lib/bundle_update_interactive/cli.rb +++ b/lib/bundle_update_interactive/cli.rb @@ -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