Skip to content
This repository has been archived by the owner on Jul 28, 2021. It is now read-only.

Commit

Permalink
fix(otplease): promisify read (#30)
Browse files Browse the repository at this point in the history
`read` doesn't return a promise.
See https://www.npmjs.com/package/read
  • Loading branch information
alopezsanchez authored and zkat committed Nov 19, 2018
1 parent b58387c commit f7e31f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils/otplease.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function otplease (opts, fn) {
}

function readOTP (msg, otp, isRetry) {
const read = require('read')
const read = BB.promisify(require('read'))
if (!msg) {
msg = [
'This command requires a one-time password (OTP) from your authenticator app.',
Expand Down

0 comments on commit f7e31f6

Please sign in to comment.