mirror of
https://github.com/gbevin/urlencoder.git
synced 2025-04-28 16:38:12 -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) {
|
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 {
|
||||||
}
|
System.err.println(result.output);
|
||||||
case 1: {
|
System.exit(result.status);
|
||||||
System.err.println(result.output);
|
|
||||||
System.exit(1);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue