From 06c19641b4dba7b705adf0a573eb47350af1bb98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Turbelin?= Date: Mon, 21 Jun 2021 22:52:33 +0200 Subject: [PATCH] Remove return on case --- .../app/controllers/dfc_provider/api/base_controller.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engines/dfc_provider/app/controllers/dfc_provider/api/base_controller.rb b/engines/dfc_provider/app/controllers/dfc_provider/api/base_controller.rb index edc8e3adaa..3117d66447 100644 --- a/engines/dfc_provider/app/controllers/dfc_provider/api/base_controller.rb +++ b/engines/dfc_provider/app/controllers/dfc_provider/api/base_controller.rb @@ -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