Skip to content

Commit

Permalink
Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
versx authored Jul 15, 2021
1 parent 3d4077c commit fbebe6d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/routes/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -754,14 +754,14 @@ const get = async (uuid, url) => {
logger('dcm').error(`Failed to get screenshot for ${uuid} at ${url}. Are you sure the device is up? ${err.code}`);
})
.pipe(fileStream);
}else if (isBrightness){
request.post(url, (err) => {
if (err) {
logger('dcm').error(`Error: ${err}`);
}
}).on('error', (err) => {
logger('dcm').error(`Error occurred: ${err}`);
});
} else if (isBrightness) {
request.post(url, (err) => {
if (err) {
logger('dcm').error(`Error: ${err}`);
}
}).on('error', (err) => {
logger('dcm').error(`Error occurred: ${err}`);
});
} else {
request.get(url, (err) => {
if (err) {
Expand Down

0 comments on commit fbebe6d

Please sign in to comment.