mirror of
https://github.com/gbevin/urlencoder.git
synced 2025-04-25 07:17:11 -07:00
Code cleanup
This commit is contained in:
parent
f3c7853d02
commit
48bc321058
1 changed files with 6 additions and 9 deletions
|
@ -263,15 +263,12 @@ public final class UrlEncoder {
|
|||
|
||||
public static void main(String[] arguments) {
|
||||
var result = handleMain(arguments);
|
||||
switch (result.status) {
|
||||
case 0: {
|
||||
System.out.println(result.output);
|
||||
System.exit(0);
|
||||
}
|
||||
case 1: {
|
||||
System.err.println(result.output);
|
||||
System.exit(1);
|
||||
}
|
||||
if (result.status == 0) {
|
||||
System.out.println(result.output);
|
||||
System.exit(0);
|
||||
} else {
|
||||
System.err.println(result.output);
|
||||
System.exit(result.status);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue