refactor: replace try with if statements

This commit is contained in:
xaver106 2022-06-02 12:32:17 +02:00
parent 724c8a6148
commit 58378dd900
No known key found for this signature in database
GPG Key ID: B1A415AB920AFDA2

View File

@ -178,6 +178,20 @@ public class DebugPaste extends SubCommand {
"lang"
);
if (langDir.exists()) {
File[] fileList = langDir.listFiles();
if (fileList != null) {
for (File current : fileList) {
if (current == null || current.exists()) {
continue;
}
if (current.getName().startsWith("messages_") && current.getName().endsWith(".json")) {
incendoPaster.addFile(current);
}
}
}
}
try {
for (File current : langDir.listFiles()) {
try {