Skip to content

Commit 34a1fef

Browse files
Fix pre-existing Standard violations surfaced by CI
scale_dynos wrapped a method call in redundant parentheses under the splat (Style/RedundantParentheses). Never caught before because the repo had no CI. Tool: Claude Code (claude-opus-4-8[1m])
1 parent e9f6d29 commit 34a1fef

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/stairstep/common/heroku.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ def slug_id(remote)
4747
end
4848

4949
def scale_dynos(remote, initial_deploy:)
50-
heroku(remote, "ps:scale", *(worker_dyno_counts(remote).collect { |type, _| "#{type}=0" })) unless initial_deploy
50+
heroku(remote, "ps:scale", *worker_dyno_counts(remote).collect { |type, _| "#{type}=0" }) unless initial_deploy
5151
yield
5252
ensure
53-
heroku(remote, "ps:scale", *(worker_dyno_counts(remote).collect { |type, count| "#{type}=#{count}" })) unless initial_deploy
53+
heroku(remote, "ps:scale", *worker_dyno_counts(remote).collect { |type, count| "#{type}=#{count}" }) unless initial_deploy
5454
Timeout.timeout(300) { heroku(remote, "ps:wait") }
5555
end
5656

0 commit comments

Comments
 (0)