Code cleanup

This commit is contained in:
Geert Bevin 2023-01-01 03:30:28 -05:00
parent f3c7853d02
commit 48bc321058

View file

@ -263,15 +263,12 @@ public final class UrlEncoder {
public static void main(String[] arguments) { public static void main(String[] arguments) {
var result = handleMain(arguments); var result = handleMain(arguments);
switch (result.status) { if (result.status == 0) {
case 0: {
System.out.println(result.output); System.out.println(result.output);
System.exit(0); System.exit(0);
} } else {
case 1: {
System.err.println(result.output); System.err.println(result.output);
System.exit(1); System.exit(result.status);
}
} }
} }
} }