Skip to content

Commit 28a353e

Browse files
committed
Close FileSystem later
1 parent 7f351be commit 28a353e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/net/javadiscord/javabot/data/h2db/commands/MigrateSubcommand.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ public void execute(@NotNull SlashCommandInteractionEvent event) {
8181
return;
8282
}
8383
String sql = Files.readString(migrationFile);
84+
migrationsDir.getFileSystem().close();
8485
String[] statements = sql.split("\\s*;\\s*");
8586
if (statements.length == 0) {
8687
Responses.error(event, "The migration `" + migrationName + "` does not contain any statements. Please remove or edit it before running again.").queue();

0 commit comments

Comments
 (0)