We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4bc9ef9 + 69bc880 commit 9d19b39Copy full SHA for 9d19b39
index.js
@@ -16,10 +16,8 @@ const doubleCheck = (data, options = {}) => {
16
const verbose = options.verbose;
17
try {
18
const res = parse(data);
19
- psw(`\n${chalk.cyan('The JSON data was fixed!')}`);
20
- if (res) {
21
- return options.parse ? res : data;
22
- }
+ if (verbose) psw(`\n${chalk.cyan('The JSON data was fixed!')}`);
+ if (res) return options.parse ? res : data;
23
} catch (err) {
24
if (verbose) {
25
psw('Nearly fixed data:');
0 commit comments