mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-16 13:15:07 +00:00
refactor: cleaned up code.
This commit is contained in:
@@ -385,7 +385,8 @@ namespace ICD.Common.Utils
|
|||||||
if (!webServerPath.StartsWith(WebServerPath))
|
if (!webServerPath.StartsWith(WebServerPath))
|
||||||
throw new ArgumentException("Path is not in the web server directory");
|
throw new ArgumentException("Path is not in the web server directory");
|
||||||
|
|
||||||
string local = webServerPath.Substring(WebServerPath.Length);
|
string local = webServerPath.Substring(WebServerPath.Length + 1)
|
||||||
|
.Replace('\\', '/');
|
||||||
|
|
||||||
return string.Format("{0}/{1}", IcdEnvironment.NetworkAddresses.First(), local);
|
return string.Format("{0}/{1}", IcdEnvironment.NetworkAddresses.First(), local);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user