Skip to content

Commit c53c9b4

Browse files
ondrejfuhrerclaude
andcommitted
Fix code style violations
Fixed alignment issues with if/else/end blocks and removed unused variable assignment. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 96dac29 commit c53c9b4

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

lib/bcu/command/upgrade.rb

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ def run_process(options)
6565
cleanup_necessary = !options.interactive
6666

6767
result = if options.interactive
68-
for_upgrade = to_upgrade_interactively outdated, options, state_info
69-
upgrade for_upgrade, options
70-
else
71-
upgrade outdated, options
72-
end
68+
for_upgrade = to_upgrade_interactively outdated, options, state_info
69+
upgrade for_upgrade, options
70+
else
71+
upgrade outdated, options
72+
end
7373

7474
cleanup(options, cleanup_necessary)
7575

@@ -195,12 +195,6 @@ def install(apps, options)
195195
brew_ids = brew_apps.map do |app|
196196
app[:tap].nil? ? app[:token] : "#{app[:tap]}/#{app[:token]}"
197197
end
198-
colored_tokens = brew_apps.map { |app| Formatter.colorize(app[:token], "green") }
199-
tokens_list = if colored_tokens.length > 1
200-
"#{colored_tokens[0..-2].join(", ")} and #{colored_tokens[-1]}"
201-
else
202-
colored_tokens.first
203-
end
204198
fetch_cmd = "brew fetch --cask #{brew_ids.join(" ")}#{verbose_flag}"
205199
system fetch_cmd.to_s
206200

0 commit comments

Comments
 (0)