From ab225fbd91008fc9a6f1f00b3d5ab29c6a3cfa67 Mon Sep 17 00:00:00 2001
From: Matthew Landauer <mlandauer@gmail.com>
Date: Wed, 20 Mar 2024 01:03:12 +0000
Subject: [PATCH] Keep rubocop happy

---
 app/controllers/api_keys/non_commercials_controller.rb | 6 +++---
 app/controllers/api_keys/paid_controller.rb            | 6 +++---
 app/controllers/api_keys/requests_controller.rb        | 6 +++---
 3 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/app/controllers/api_keys/non_commercials_controller.rb b/app/controllers/api_keys/non_commercials_controller.rb
index 551b4dc20..1ab3d56c7 100644
--- a/app/controllers/api_keys/non_commercials_controller.rb
+++ b/app/controllers/api_keys/non_commercials_controller.rb
@@ -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
diff --git a/app/controllers/api_keys/paid_controller.rb b/app/controllers/api_keys/paid_controller.rb
index 6a5ca379f..b0ae4d908 100644
--- a/app/controllers/api_keys/paid_controller.rb
+++ b/app/controllers/api_keys/paid_controller.rb
@@ -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
diff --git a/app/controllers/api_keys/requests_controller.rb b/app/controllers/api_keys/requests_controller.rb
index c3a218009..c10f98212 100644
--- a/app/controllers/api_keys/requests_controller.rb
+++ b/app/controllers/api_keys/requests_controller.rb
@@ -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