Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
Signed-off-by: Will <[email protected]>
  • Loading branch information
wdower committed Feb 13, 2025
1 parent b4c4f9f commit 9d3ecfe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions libs/hdf-converters/src/trufflehog-mapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ export class TrufflehogResults {
let parsedData = {};
try {
parsedData = JSON.parse(trufflehogJson.trim());
}
catch (e) {
parsedData = trufflehogJson.trim().split("\n").map((line) => JSON.parse(line.trim()));
} catch (e) {
parsedData = trufflehogJson
.trim()
.split('\n')
.map((line) => JSON.parse(line.trim()));
}
this.withRaw = withRaw;
if (_.isArray(parsedData)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -267,4 +267,4 @@ describe('trufflehog_dup_ndjson', () => {
)
);
});
});
});

0 comments on commit 9d3ecfe

Please sign in to comment.