From e49f52d5099cff4a74acffb8402bd985bb217e17 Mon Sep 17 00:00:00 2001 From: GabrieleRadice <265572328+GabrieleRadice@users.noreply.github.com> Date: Wed, 20 May 2026 16:04:00 +0200 Subject: [PATCH] Refactor. --- src/main/java/it/polimi/ingsw/gc14/ServerLauncher.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main/java/it/polimi/ingsw/gc14/ServerLauncher.java b/src/main/java/it/polimi/ingsw/gc14/ServerLauncher.java index 3f13fe5..6dbd239 100644 --- a/src/main/java/it/polimi/ingsw/gc14/ServerLauncher.java +++ b/src/main/java/it/polimi/ingsw/gc14/ServerLauncher.java @@ -10,7 +10,6 @@ import it.polimi.ingsw.gc14.Model.Totems; import it.polimi.ingsw.gc14.Network.EventType; import it.polimi.ingsw.gc14.Network.NetworkEvent; import it.polimi.ingsw.gc14.Network.NetworkEvents.ApplyNextRound; -import it.polimi.ingsw.gc14.Network.NetworkEvents.DisconnectedPlayer; import it.polimi.ingsw.gc14.Network.NetworkEvents.EndedGame; import it.polimi.ingsw.gc14.Network.NetworkEvents.TotemChoice; import it.polimi.ingsw.gc14.Network.RMI.Server.RMIServer; @@ -422,10 +421,7 @@ public class ServerLauncher { Files.delete(filePath); return true; } - catch(URISyntaxException e){ - return false; - } - catch (IOException e){ + catch(URISyntaxException | IOException e){ return false; } }