From f49bec90f7b1a9720d4ed9df950fdce1c5454868 Mon Sep 17 00:00:00 2001 From: Pat Hartl Date: Mon, 11 Sep 2023 19:37:56 -0500 Subject: [PATCH] Simplify root path --- LANCommander/Pages/Servers/Edit.razor | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/LANCommander/Pages/Servers/Edit.razor b/LANCommander/Pages/Servers/Edit.razor index 8cc6c43..3689e24 100644 --- a/LANCommander/Pages/Servers/Edit.razor +++ b/LANCommander/Pages/Servers/Edit.razor @@ -148,7 +148,7 @@ IEnumerable Games = new List(); - string RootPath; + string RootPath = Path.GetPathRoot(Directory.GetCurrentDirectory()); Server Server; Guid GameId; @@ -160,8 +160,6 @@ else Server = await ServerService.Get(Id); - RootPath = Path.GetPathRoot(Directory.GetCurrentDirectory()); - if (Server.GameId.HasValue) GameId = Server.GameId.Value;