Skip to content

Commit

Permalink
Keep rubocop happy
Browse files Browse the repository at this point in the history
  • Loading branch information
mlandauer committed Mar 20, 2024
1 parent a809cff commit ab225fb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions app/controllers/api_keys/non_commercials_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ class NonCommercialsController < ApplicationController

sig { void }
def new
unless Flipper.enabled?(:request_api_keys, current_user)
raise ActiveRecord::RecordNotFound
end
return if Flipper.enabled?(:request_api_keys, current_user)

raise ActiveRecord::RecordNotFound
end
end
end
6 changes: 3 additions & 3 deletions app/controllers/api_keys/paid_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ class PaidController < ApplicationController

sig { void }
def new
unless Flipper.enabled?(:request_api_keys, current_user)
raise ActiveRecord::RecordNotFound
end
return if Flipper.enabled?(:request_api_keys, current_user)

raise ActiveRecord::RecordNotFound
end
end
end
6 changes: 3 additions & 3 deletions app/controllers/api_keys/requests_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ class RequestsController < ApplicationController

sig { void }
def new
unless Flipper.enabled?(:request_api_keys, current_user)
raise ActiveRecord::RecordNotFound
end
return if Flipper.enabled?(:request_api_keys, current_user)

raise ActiveRecord::RecordNotFound
end
end
end

0 comments on commit ab225fb

Please sign in to comment.