Skip to content

Commit 1fcd533

Browse files
committed
clean up
1 parent 47f33a5 commit 1fcd533

File tree

1 file changed

+2
-4
lines changed
  • src/main/java/org/maxgamer/quickshop/util

1 file changed

+2
-4
lines changed

src/main/java/org/maxgamer/quickshop/util/Util.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1116,12 +1116,10 @@ public static String componentsToJson(BaseComponent[] components) {
11161116

11171117
@SneakyThrows
11181118
public static void makeExportBackup(@Nullable String backupName) {
1119-
File file;
11201119
if (StringUtils.isEmpty(backupName)) {
1121-
file = new File(plugin.getDataFolder(), "export.txt");
1122-
} else {
1123-
file = new File(plugin.getDataFolder(), backupName + ".txt");
1120+
backupName = "export.txt";
11241121
}
1122+
File file = new File(plugin.getDataFolder(), backupName + ".txt");
11251123
if (file.exists()) {
11261124
Files.move(file.toPath(), new File(file.getParentFile(), file.getName() + UUID.randomUUID().toString().replace("-", "")).toPath());
11271125
}

0 commit comments

Comments
 (0)