Skip to content

Commit

Permalink
Fix duplicated messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Amir-P committed Aug 16, 2024
1 parent f4a63c0 commit 5e71492
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,6 @@ void main(List<String> args) {
hasRegression = hasRegression || result.$2;
outputBuffer.writeln(result.$1);

if (hasRegression) {
outputBuffer.write(buildErrorMessage('Performance tests found regression'));
} else {
outputBuffer
.write(buildSuccessMessage('Performance tests found no regression'));
}

print(outputBuffer.toString());
exit(hasRegression ? 1 : 0);
}
Expand Down Expand Up @@ -79,7 +72,7 @@ void main(List<String> args) {
if (testHasRegression) {
outputBuffer.writeln(buildErrorMessage('regression'));
} else {
outputBuffer.writeln('no regression');
outputBuffer.writeln(buildSuccessMessage('no regression'));
}

return (outputBuffer.toString(), testHasRegression);
Expand Down

0 comments on commit 5e71492

Please sign in to comment.