Skip to content

Commit

Permalink
fix: linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhendumadhukar committed Aug 5, 2023
1 parent 4b174fc commit 29a6bb3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/routes/GlobalController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ export default class GlobalController {
const response = await parser.getResponse(mockFile);
try {
const fileBody = JSON.parse(response.body)
if (fileBody.hasOwnProperty("camouflage_file_helper")) {
const hasKey = Object.prototype.hasOwnProperty.call(fileBody, 'camouflage_file_helper');
if (hasKey) {
res.sendFile(fileBody["camouflage_file_helper"])
return
}
Expand Down

0 comments on commit 29a6bb3

Please sign in to comment.