From: Toshi MARUYAMA Date: Thu, 17 Dec 2020 13:10:48 +0000 (+0000) Subject: remove redundant 'return' from lib/redmine/twofa/totp.rb X-Git-Tag: 4.2.0~158 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9c3ccff80abe82892ad6f511d5df63db5c9c9967;p=redmine.git remove redundant 'return' from lib/redmine/twofa/totp.rb git-svn-id: http://svn.redmine.org/redmine/trunk@20661 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/lib/redmine/twofa/totp.rb b/lib/redmine/twofa/totp.rb index 9e826fb99..f25b05faf 100644 --- a/lib/redmine/twofa/totp.rb +++ b/lib/redmine/twofa/totp.rb @@ -43,9 +43,9 @@ module Redmine verified_at = totp.verify(code.to_s, drift_behind: allowed_drift, after: last_verified_at) if verified_at @user.update!(twofa_totp_last_used_at: verified_at) - return true + true else - return false + false end end