Skip to content

Commit

Permalink
Merge pull request #1176 from siiky/fix/lam-1128/scanfacephoto
Browse files Browse the repository at this point in the history
LAM-1128 fix: no `timeout` parameter in `scanFacephoto()`
  • Loading branch information
RafaelTaranto authored Sep 3, 2024
2 parents 1ef05b9 + 36c8829 commit bcff8c6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/mocks/scanner.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ function scanPhotoCard (callback) {
}

function scanFacephoto (callback) {
timeout = timeout ?? cbTimeout
prepareForCapture()
_cancelCb = callback

Expand All @@ -106,7 +105,7 @@ function scanFacephoto (callback) {
_cancelCb = null
opened = false
callback(null, photoData)
}, timeout)
}, cbTimeout)
}

function takeFacephoto (callback) {
Expand Down

0 comments on commit bcff8c6

Please sign in to comment.