From: Niki Roo Date: Wed, 6 May 2020 15:22:59 +0000 (+0200) Subject: code cleanup X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=59f1f1bf22d8df16466a081b4921683a551a80ce;p=nikiroo-utils.git code cleanup --- diff --git a/Main.java b/Main.java index 2e8b6d1..9d9592e 100644 --- a/Main.java +++ b/Main.java @@ -126,6 +126,9 @@ public class Main { int exitCode = 0; for (int i = 0; exitCode == 0 && i < args.length; i++) { + if (args[i] == null) + continue; + // Action (--) handling: if (!noMoreActions && args[i].startsWith("--")) { if (args[i].equals("--")) { diff --git a/supported/E621.java b/supported/E621.java index dc7cb1b..adf8d28 100644 --- a/supported/E621.java +++ b/supported/E621.java @@ -7,7 +7,6 @@ import java.net.URL; import java.net.URLDecoder; import java.util.AbstractMap; import java.util.ArrayList; -import java.util.Collections; import java.util.Date; import java.util.LinkedList; import java.util.List;