diff options
author | hannibal00212 <hannibal00212@users.noreply.github.com> | 2022-07-15 17:43:14 +0000 |
---|---|---|
committer | GitHub Action <actions@github.com> | 2022-07-15 17:43:14 +0000 |
commit | 97b1c4bd37b05c5181f547ee32180263d1c26d93 (patch) | |
tree | cff7e2c2d0aac8a61051f5f3620e23d62ea5114c /src/main | |
parent | 9ac343b674bfb6d6f7f2e429fd22be574fc1746c (diff) | |
download | skyhanni-97b1c4bd37b05c5181f547ee32180263d1c26d93.tar.gz skyhanni-97b1c4bd37b05c5181f547ee32180263d1c26d93.tar.bz2 skyhanni-97b1c4bd37b05c5181f547ee32180263d1c26d93.zip |
Prettified Code!
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/SkyHanniMod.java | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/SkyHanniMod.java b/src/main/java/at/hannibal2/skyhanni/SkyHanniMod.java index 216a5611e..62a5874eb 100644 --- a/src/main/java/at/hannibal2/skyhanni/SkyHanniMod.java +++ b/src/main/java/at/hannibal2/skyhanni/SkyHanniMod.java @@ -81,16 +81,14 @@ public class SkyHanniMod { try { //noinspection ResultOfMethodCallIgnored configDirectory.mkdir(); - } catch (Exception ignored) { - } + } catch (Exception ignored) {} configFile = new File(configDirectory, "config.json"); if (configFile.exists()) { try (BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(configFile), StandardCharsets.UTF_8))) { feature = gson.fromJson(reader, Features.class); - } catch (Exception ignored) { - } + } catch (Exception ignored) {} } if (feature == null) { @@ -111,8 +109,7 @@ public class SkyHanniMod { try (BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(configFile), StandardCharsets.UTF_8))) { writer.write(gson.toJson(feature)); } - } catch (IOException ignored) { - } + } catch (IOException ignored) {} } public static GuiScreen screenToOpen = null; |