diff options
author | Nick Schonning <nschonni@gmail.com> | 2023-02-08 01:07:36 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-08 07:07:36 +0100 |
commit | f68bb52556fe90d7adad8db9ba8b801a22281f30 (patch) | |
tree | bbf7e121bf50760cec93afacff695f160a7f16d2 /app/controllers | |
parent | 8c1b65c7ddb9d49cb33c15c9a92dbfefebe868c6 (diff) |
Apply Rubocop Style/NegatedIfElseCondition (#23451)
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/api/v1/streaming_controller.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/api/v1/streaming_controller.rb b/app/controllers/api/v1/streaming_controller.rb index 7cd60615a..b23a60170 100644 --- a/app/controllers/api/v1/streaming_controller.rb +++ b/app/controllers/api/v1/streaming_controller.rb @@ -2,10 +2,10 @@ class Api::V1::StreamingController < Api::BaseController def index - if Rails.configuration.x.streaming_api_base_url != request.host - redirect_to streaming_api_url, status: 301 - else + if Rails.configuration.x.streaming_api_base_url == request.host not_found + else + redirect_to streaming_api_url, status: 301 end end |