Simplify root path
parent
8910746e1e
commit
f49bec90f7
|
@ -148,7 +148,7 @@
|
||||||
|
|
||||||
IEnumerable<Game> Games = new List<Game>();
|
IEnumerable<Game> Games = new List<Game>();
|
||||||
|
|
||||||
string RootPath;
|
string RootPath = Path.GetPathRoot(Directory.GetCurrentDirectory());
|
||||||
|
|
||||||
Server Server;
|
Server Server;
|
||||||
Guid GameId;
|
Guid GameId;
|
||||||
|
@ -160,8 +160,6 @@
|
||||||
else
|
else
|
||||||
Server = await ServerService.Get(Id);
|
Server = await ServerService.Get(Id);
|
||||||
|
|
||||||
RootPath = Path.GetPathRoot(Directory.GetCurrentDirectory());
|
|
||||||
|
|
||||||
if (Server.GameId.HasValue)
|
if (Server.GameId.HasValue)
|
||||||
GameId = Server.GameId.Value;
|
GameId = Server.GameId.Value;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue