Skip to content

Commit

Permalink
Remove one exitOnErrorsOrWarnings since it would be called whatever i…
Browse files Browse the repository at this point in the history
…n the end. Otherwise, it seems we ran into some IO issues cause binary failure when writing into file.

PiperOrigin-RevId: 513659985
  • Loading branch information
j2objc-copybara authored and Copybara-Service committed Mar 2, 2023
1 parent 24fa577 commit a39e61a
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -298,8 +298,9 @@ public static void main(String[] args) {
shaker.testFileExistence();
exitOnErrorsOrWarnings(treatWarningsAsErrors);
CodeReferenceMap unusedCode = shaker.findUnusedCode();
exitOnErrorsOrWarnings(treatWarningsAsErrors);
writeToFile(options, unusedCode);
if (unusedCode != null) {
writeToFile(options, unusedCode);
}
} catch (IOException e) {
ErrorUtil.error(e.getMessage());
}
Expand Down

0 comments on commit a39e61a

Please sign in to comment.