Skip to content

Commit

Permalink
feat: update
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangtao25 committed Dec 20, 2024
1 parent ac6ebd6 commit 343aa64
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
globalObj.manualWriteCanyonToLocal = function () {
globalObj.writeCanyonToLocal(JSON.stringify({
coverage: globalObj.__coverage__,
canyon: globalObj.__canyon__
canyon: globalObj.__canyon__ || (Object.keys(globalObj.__coverage__).length>0?Object.values(globalObj.__coverage__)[0]:undefined)
}))
}
}
Expand All @@ -32,7 +32,7 @@
if (globalObj.writeCanyonToLocal) {
globalObj.writeCanyonToLocal(JSON.stringify({
coverage: globalObj.__coverage__,
canyon: globalObj.__canyon__
canyon: globalObj.__canyon__ || (Object.keys(globalObj.__coverage__).length>0?Object.values(globalObj.__coverage__)[0]:undefined)
}))
} else {
console.log('writeCanyonToLocal is not defined')
Expand Down

0 comments on commit 343aa64

Please sign in to comment.