Skip to content

Commit

Permalink
Fix lintdiff issue (#5299)
Browse files Browse the repository at this point in the history
  • Loading branch information
sergey-shandar authored Feb 28, 2019
1 parent 5a75de2 commit 286528f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions scripts/momentOfTruth.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,7 @@ async function getLinterResult(swaggerPath) {
throw new Error("AutoRest failed");
}

if (stderr !== "") {
console.error(`Error: ${stderr}`)
process.exit(1)
}
let resultString = stdout;
let resultString = stdout + stderr;
if (resultString.indexOf('{') !== -1) {
resultString = resultString.replace(/Processing batch task - {.*} \.\n/g, "");
resultString = "[" + resultString.substring(resultString.indexOf('{')).trim().replace(/\}\n\{/g, "},\n{") + "]";
Expand Down

0 comments on commit 286528f

Please sign in to comment.