From: Go MAEDA Date: Wed, 11 Jan 2023 14:03:28 +0000 (+0000) Subject: Fix RuboCop offense Lint/UselessRescue (#36919). X-Git-Tag: 5.1.0~294 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=59775bde9f4005d32ac344ea6bc7a56067271b38;p=redmine.git Fix RuboCop offense Lint/UselessRescue (#36919). git-svn-id: https://svn.redmine.org/redmine/trunk@22035 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/models/user.rb b/app/models/user.rb index 8c0a17c2e..7180191d9 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -235,8 +235,6 @@ class User < Principal end user.update_last_login_on! if user && !user.new_record? && user.active? user - rescue => text - raise text end # Returns the user who matches the given autologin +key+ or nil