Skip to content

Commit

Permalink
feat: update
Browse files Browse the repository at this point in the history
  • Loading branch information
Allen Zhang committed Dec 18, 2023
1 parent a9eccca commit 1723a86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/canyon-backend/src/upload/helpers/uploadAnalyze.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function safeJSONParse(jsonString) {
try {
return JSON.parse(jsonString);
} catch (e) {
return null;
return {};
}
}
export function uploadAnalyze(filecontent) {
Expand All @@ -27,7 +27,7 @@ export function uploadAnalyze(filecontent) {
coverage: safeJSONParse(
filecontentListFinal.find((item) => {
return item.filePath.includes('coverage/coverage-final.json');
})['fileContent'],
})?.fileContent,
),
filenameList: filenameListFinal,
};
Expand Down

0 comments on commit 1723a86

Please sign in to comment.