style: fix RuboCop Layout/SpaceInsideArrayLiteralBrackets offenses
Autocorrected via bin/rubocop -a; the lint CI job was failing on these.
Seto Elkahfi committed
Jul 5, 2026 at 09:02 UTC
008d221b26e14726080e7c286db086f1b5e4db92
4 files changed
+6
-6
app/controllers/api/v1/chat_completions_controller.rb
+1
-1
@@ -117,7 +117,7 @@ module Api
117
# that owns the product, not in the upstream model's default persona.
118
def outbound_payload
119
completion_payload.merge(
120
- "messages" => [identity_message, *Array(completion_payload["messages"])]
120
+ "messages" => [ identity_message, *Array(completion_payload["messages"]) ]
121
)
122
end
123
app/controllers/git_http_controller.rb
+2
-2
@@ -26,7 +26,7 @@ class GitHttpController < ActionController::API
26
return head(:forbidden) unless SERVICES.include?(service)
27
return unless authorize!(service)
28
29
- advertise = git_run([service.delete_prefix("git-"), "--stateless-rpc", "--advertise-refs", @repo.disk_path])
29
+ advertise = git_run([ service.delete_prefix("git-"), "--stateless-rpc", "--advertise-refs", @repo.disk_path ])
30
return head(:internal_server_error) if advertise.nil?
31
32
no_cache
@@ -52,7 +52,7 @@ class GitHttpController < ActionController::API
52
input = request.body.read.to_s
53
input = ActiveSupport::Gzip.decompress(input) if gzip_request?
54
55
- out = git_run([service, "--stateless-rpc", @repo.disk_path], stdin: input)
55
+ out = git_run([ service, "--stateless-rpc", @repo.disk_path ], stdin: input)
56
return head(:internal_server_error) if out.nil?
57
58
no_cache
app/controllers/sessions_controller.rb
+1
-1
@@ -2,7 +2,7 @@
2
3
class SessionsController < ApplicationController
4
before_action :noindex!
5
- before_action :redirect_if_signed_in, only: [:new, :create]
5
+ before_action :redirect_if_signed_in, only: [ :new, :create ]
6
7
# GET /auth/smbcloud
8
# Shows the email/password sign-in form.
app/services/stripe_service.rb
+2
-2
@@ -60,7 +60,7 @@ class StripeService
60
61
session = Stripe::Checkout::Session.create({
62
mode: "subscription",
63
- line_items: [{ price: price_id, quantity: 1 }],
63
+ line_items: [ { price: price_id, quantity: 1 } ],
64
client_reference_id: user.id.to_s,
65
customer: existing_customer,
66
customer_email: existing_customer ? nil : user.email,
@@ -121,7 +121,7 @@ class StripeService
121
lookup_key = PRICE_LOOKUP_KEYS[plan.to_s]
122
return nil unless lookup_key
123
124
- Stripe::Price.list(lookup_keys: [lookup_key], active: true, limit: 1).data.first&.id
124
+ Stripe::Price.list(lookup_keys: [ lookup_key ], active: true, limit: 1).data.first&.id
125
end
126
end
127
end