mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-02-26 03:22:23 +01:00
refactor: replace try with if statements
This commit is contained in:
parent
724c8a6148
commit
58378dd900
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user