mirror of
https://github.com/FalsePattern/FalsePatternLib.git
synced 2026-11-16 23:25:12 +00:00
cleanup code
This commit is contained in:
51 files changed
+637
-373
No files matched your search
@@ -58,10 +58,7 @@ public interface IMixinPlugin extends IMixinConfigPlugin {
|
||||
static File findJarOf(final ITargetedMod mod) {
|
||||
File result = null;
|
||||
try (val stream = walk(MODS_DIRECTORY_PATH)) {
|
||||
result = stream.filter(mod::isMatchingJar)
|
||||
.map(Path::toFile)
|
||||
.findFirst()
|
||||
.orElse(null);
|
||||
result = stream.filter(mod::isMatchingJar).map(Path::toFile).findFirst().orElse(null);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
@@ -75,7 +72,8 @@ public interface IMixinPlugin extends IMixinConfigPlugin {
|
||||
found = path.toFile();
|
||||
break;
|
||||
}
|
||||
} catch (Exception ignored) {}
|
||||
} catch (Exception ignored) {
|
||||
}
|
||||
}
|
||||
result = found;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user