Skip to content

Commit f655be4

Browse files
committed
Cleanup
1 parent 8c7f330 commit f655be4

File tree

4 files changed

+3
-75
lines changed

4 files changed

+3
-75
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
<artifactId>gson</artifactId>
3030
<version>2.10.1</version>
3131
</dependency>
32-
3332
</dependencies>
33+
3434
<build>
3535
<plugins>
3636
<plugin>

src/main/java/net/kyrptonaught/LEMBackend/keyValueStorage/KeyValueModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public void load(Gson gson) {
4949
createDirectories();
5050

5151
JsonObject obj = readFileJson(gson, "kvs.json", JsonObject.class);
52-
if(obj == null) return;
52+
if (obj == null) return;
5353
obj.entrySet().forEach(outer -> {
5454
String id = outer.getKey();
5555
JsonObject inner = outer.getValue().getAsJsonObject();

src/main/java/net/kyrptonaught/LEMBackend/userConfig/PlayerConfigs.java

Lines changed: 0 additions & 66 deletions
This file was deleted.
Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
11
package net.kyrptonaught.LEMBackend.userConfig;
22

33
import com.google.gson.Gson;
4-
import com.google.gson.JsonArray;
5-
import com.google.gson.JsonElement;
64
import com.google.gson.JsonObject;
75
import net.kyrptonaught.LEMBackend.LEMBackend;
86
import net.kyrptonaught.LEMBackend.Module;
97

10-
import java.util.Map;
11-
import java.util.concurrent.ConcurrentHashMap;
12-
138
public class UserConfigModule extends Module {
149

1510
public UserConfigModule() {
@@ -18,7 +13,7 @@ public UserConfigModule() {
1813

1914
public JsonObject loadPlayer(String player) {
2015
JsonObject obj = readFileJson(LEMBackend.gson, player + ".json", JsonObject.class);
21-
if(obj == null) obj = new JsonObject();
16+
if (obj == null) obj = new JsonObject();
2217

2318
return obj;
2419
}
@@ -31,5 +26,4 @@ public void syncPlayer(String player, String json) {
3126
public void load(Gson gson) {
3227
createDirectories();
3328
}
34-
3529
}

0 commit comments

Comments
 (0)