Skip to content

Commit 9c3ccff

Browse files
committed
remove redundant 'return' from lib/redmine/twofa/totp.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20661 e93f8b46-1217-0410-a6f0-8f06a7374b81
1 parent bfca895 commit 9c3ccff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/redmine/twofa/totp.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ def verify_otp!(code)
4343
verified_at = totp.verify(code.to_s, drift_behind: allowed_drift, after: last_verified_at)
4444
if verified_at
4545
@user.update!(twofa_totp_last_used_at: verified_at)
46-
return true
46+
true
4747
else
48-
return false
48+
false
4949
end
5050
end
5151

0 commit comments

Comments
 (0)