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
index 77f670d..bfdc474 100644
--- a/app/controllers/api/v1/chat_completions_controller.rb
+++ b/app/controllers/api/v1/chat_completions_controller.rb
@@ -117,7 +117,7 @@ module Api
# that owns the product, not in the upstream model's default persona.
def outbound_payload
completion_payload.merge(
- "messages" => [identity_message, *Array(completion_payload["messages"])]
+ "messages" => [ identity_message, *Array(completion_payload["messages"]) ]
)
end
app/controllers/git_http_controller.rb
+2
-2
index 6bae39c..a863514 100644
--- a/app/controllers/git_http_controller.rb
+++ b/app/controllers/git_http_controller.rb
@@ -26,7 +26,7 @@ class GitHttpController < ActionController::API
return head(:forbidden) unless SERVICES.include?(service)
return unless authorize!(service)
- advertise = git_run([service.delete_prefix("git-"), "--stateless-rpc", "--advertise-refs", @repo.disk_path])
+ advertise = git_run([ service.delete_prefix("git-"), "--stateless-rpc", "--advertise-refs", @repo.disk_path ])
return head(:internal_server_error) if advertise.nil?
no_cache
@@ -52,7 +52,7 @@ class GitHttpController < ActionController::API
input = request.body.read.to_s
input = ActiveSupport::Gzip.decompress(input) if gzip_request?
- out = git_run([service, "--stateless-rpc", @repo.disk_path], stdin: input)
+ out = git_run([ service, "--stateless-rpc", @repo.disk_path ], stdin: input)
return head(:internal_server_error) if out.nil?
no_cache
app/controllers/sessions_controller.rb
+1
-1
index 2e59fa0..bcdb10b 100644
--- a/app/controllers/sessions_controller.rb
+++ b/app/controllers/sessions_controller.rb
@@ -2,7 +2,7 @@
class SessionsController < ApplicationController
before_action :noindex!
- before_action :redirect_if_signed_in, only: [:new, :create]
+ before_action :redirect_if_signed_in, only: [ :new, :create ]
# GET /auth/smbcloud
# Shows the email/password sign-in form.
app/services/stripe_service.rb
+2
-2
index cd19a4e..fcc9a98 100644
--- a/app/services/stripe_service.rb
+++ b/app/services/stripe_service.rb
@@ -60,7 +60,7 @@ class StripeService
session = Stripe::Checkout::Session.create({
mode: "subscription",
- line_items: [{ price: price_id, quantity: 1 }],
+ line_items: [ { price: price_id, quantity: 1 } ],
client_reference_id: user.id.to_s,
customer: existing_customer,
customer_email: existing_customer ? nil : user.email,
@@ -121,7 +121,7 @@ class StripeService
lookup_key = PRICE_LOOKUP_KEYS[plan.to_s]
return nil unless lookup_key
- Stripe::Price.list(lookup_keys: [lookup_key], active: true, limit: 1).data.first&.id
+ Stripe::Price.list(lookup_keys: [ lookup_key ], active: true, limit: 1).data.first&.id
end
end
end