From 5336c2758425705258a310460aa41f8414374c31 Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Wed, 6 May 2020 17:22:59 +0200 Subject: [PATCH] code cleanup --- src/be/nikiroo/fanfix/Main.java | 3 +++ src/be/nikiroo/fanfix/supported/E621.java | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/be/nikiroo/fanfix/Main.java b/src/be/nikiroo/fanfix/Main.java index 2e8b6d17..9d9592ee 100644 --- a/src/be/nikiroo/fanfix/Main.java +++ b/src/be/nikiroo/fanfix/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/src/be/nikiroo/fanfix/supported/E621.java b/src/be/nikiroo/fanfix/supported/E621.java index dc7cb1b3..adf8d28c 100644 --- a/src/be/nikiroo/fanfix/supported/E621.java +++ b/src/be/nikiroo/fanfix/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; -- 2.27.0