Skip to content

Commit

Permalink
refactored code for better clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
SleekMutt committed Nov 22, 2024
1 parent e21cb0c commit a663d87
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/controllers/calculators_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ def resource
end

def check_mhc_flipper
raise ActionController::RoutingError, "Mhc calculator flipper is disabled" unless Flipper[:mhc_calculator_status].enabled?
return if Flipper[:mhc_calculator_status].enabled?

raise ActionController::RoutingError, "Mhc calculator flipper is disabled"
end
end

0 comments on commit a663d87

Please sign in to comment.