Skip to content

Commit

Permalink
Fix indentation again...
Browse files Browse the repository at this point in the history
  • Loading branch information
versx authored Jul 15, 2021
1 parent fbebe6d commit a0adb37
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 a0adb37

Please sign in to comment.