summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAshley Ellis Pierce <anellis12@gmail.com>2023-01-23 16:21:48 -0500
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2023-04-12 11:56:33 +0900
commit774d1f1a0067e16a3dfdd0aed4bae66143de2140 (patch)
treec9016c0d1ab82107c696365ed0b933e33d0cbb92 /lib
parent096f6eec3e6be23991e752a6ce56a2efca7a47c9 (diff)
downloadruby-774d1f1a0067e16a3dfdd0aed4bae66143de2140.tar.gz
Merge lines
Diffstat (limited to 'lib')
-rw-r--r--lib/rubygems/gemcutter_utilities.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/rubygems/gemcutter_utilities.rb b/lib/rubygems/gemcutter_utilities.rb
index 7556753f58..85ea26062f 100644
--- a/lib/rubygems/gemcutter_utilities.rb
+++ b/lib/rubygems/gemcutter_utilities.rb
@@ -251,8 +251,7 @@ module Gem::GemcutterUtilities
end
def ask_otp(credentials)
- webauthn_url = webauthn_verification_url(credentials)
- if webauthn_url
+ if webauthn_url = webauthn_verification_url(credentials)
say "You have enabled multi-factor authentication. Please enter OTP code from your security device by visiting #{webauthn_url}."
else
say "You have enabled multi-factor authentication. Please enter OTP code."