Config: Use Path.Combine() instead of GetAbsolutePath()

This commit is contained in:
2024-01-18 22:07:31 +01:00
parent 7d199282d0
commit 1d1398a9cd
2 changed files with 3 additions and 7 deletions

View File

@ -356,9 +356,5 @@ namespace Elwig.Helpers {
}
return output.OrderByDescending(l => l.Count());
}
public static string GetAbsolutePath(string path, string basePath) {
return (path.Length > 1 && (path[1] == ':' || path[0] == '/' || path[0] == '\\')) ? Path.Combine(basePath, path) : path;
}
}
}