mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Remove return on case
This commit is contained in:
@@ -34,11 +34,11 @@ module DfcProvider
|
||||
@current_enterprise ||=
|
||||
case params[enterprise_id_param_name]
|
||||
when 'default'
|
||||
return current_user.enterprises.first!
|
||||
current_user.enterprises.first!
|
||||
when nil
|
||||
return nil
|
||||
nil
|
||||
else
|
||||
return current_user.enterprises.find(params[enterprise_id_param_name])
|
||||
current_user.enterprises.find(params[enterprise_id_param_name])
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user