Skip to content

Commit

Permalink
fix: finally doesn't return res, wrong var name
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelTaranto committed Jun 6, 2024
1 parent f27d92e commit 7b1cee2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/scanner.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,12 +293,12 @@ const diagnosticPhotos = () => {
.catch(() => {})
.then(() => delayedshot('', 1, '/dev/video-front'))
.then((front) => {
if (value) {
if (front) {
response.front = front.toString('base64')
}
})
.catch(() => {})
.finally(() => {
.then(() => {
cameraStreamer.setVerbose(IS_VERBOSE)
return response
})
Expand Down

0 comments on commit 7b1cee2

Please sign in to comment.