Skip to content

Commit

Permalink
fix: json添加格式化
Browse files Browse the repository at this point in the history
  • Loading branch information
sorry510 committed Oct 5, 2021
1 parent 6375e1b commit 2a1ff32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ async function init() {
return trade
})
)
fs.writeFileSync(tradeFile, JSON.stringify(newTradeList))
fs.writeFileSync(tradeFile, JSON.stringify(newTradeList, null, 2))
} catch (e) {
Api.notifyServiceError(e)
log(e)
Expand Down

0 comments on commit 2a1ff32

Please sign in to comment.