Code cleanup.

This commit is contained in:
2022-11-15 20:14:36 +08:00
parent 3d5ea4f056
commit 15e66d29c4

View File

@@ -17,7 +17,7 @@ namespace Cryville.Common {
public static void SetLogPath(string path) { public static void SetLogPath(string path) {
logPath = path; logPath = path;
var dir = new DirectoryInfo(path); var dir = new DirectoryInfo(path);
if (!dir.Exists) Directory.CreateDirectory(dir.FullName); if (!dir.Exists) dir.Create();
} }
/// <summary> /// <summary>
/// Logs to the specified logger. /// Logs to the specified logger.