Collapse identical catch block

This commit is contained in:
Ossian Winter 2021-01-27 15:23:53 +01:00
parent 787e803ef3
commit 2e1ad35566
No known key found for this signature in database
GPG Key ID: 1017BE95C68A39F9
1 changed files with 1 additions and 4 deletions

View File

@ -45,10 +45,7 @@ public final class JavaScriptCommand extends Command {
} catch (TimeoutException e) {
Seppuku.INSTANCE.errorChat("Took too long to execute");
Executors.newCachedThreadPool().shutdown();
} catch (InterruptedException e) {
e.printStackTrace();
Seppuku.INSTANCE.errorChat(e.getMessage());
} catch (ExecutionException e) {
} catch (InterruptedException | ExecutionException e) {
e.printStackTrace();
Seppuku.INSTANCE.errorChat(e.getMessage());
}