Remove N/A hack from json-file-fix and format file
This commit is contained in:
parent
05e6ef2650
commit
9a38a597e5
1 changed files with 3 additions and 8 deletions
|
|
@ -37,13 +37,8 @@ fs.readdirSync(arg, { recursive: true, withFileTypes: true }).forEach(file => {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (errorObject["short_description"] === "N/A") errorObject["short_description"] = "Unknown cause.";
|
const {
|
||||||
if (errorObject["long_description"] === "N/A") errorObject["long_description"] = "Unknown cause.";
|
short_description,
|
||||||
if (errorObject["short_solution"] === "N/A") errorObject["short_solution"] = "Unknown solution.";
|
|
||||||
if (errorObject["long_solution"] === "N/A") errorObject["long_solution"] = "Unknown solution.";
|
|
||||||
|
|
||||||
const {
|
|
||||||
short_description,
|
|
||||||
long_description,
|
long_description,
|
||||||
short_solution,
|
short_solution,
|
||||||
long_solution,
|
long_solution,
|
||||||
|
|
@ -72,5 +67,5 @@ fs.readdirSync(arg, { recursive: true, withFileTypes: true }).forEach(file => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
fs.writeFileSync(fullPath, JSON.stringify(json, null, "\t"));
|
fs.writeFileSync(fullPath, JSON.stringify(json, null, "\t"));
|
||||||
});
|
});
|
||||||
Loading…
Add table
Add a link
Reference in a new issue