Skip to content

Commit

Permalink
nullable checks because why not
Browse files Browse the repository at this point in the history
  • Loading branch information
xubiod committed Dec 17, 2023
1 parent 632a3aa commit 07d04a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xubot/src/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ private static async Task BeginOnlineStart()
{
AppStart = DateTime.Now;

string currentDir = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location);
string currentDir = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location) ?? ".";

Util.Json.ProcessFile("keys", Path.Combine(currentDir, "Keys.json"));
Util.Json.ProcessFile("apis", Path.Combine(currentDir, "API.json"));
Expand Down Expand Up @@ -148,7 +148,7 @@ private static async Task BeginOfflineStart()
{
AppStart = DateTime.Now;

string currentDir = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location);
string currentDir = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location) ?? ".";

Util.Json.ProcessFile("keys", Path.Combine(currentDir, "Keys.json"));
Util.Json.ProcessFile("apis", Path.Combine(currentDir, "API.json"));
Expand Down

0 comments on commit 07d04a2

Please sign in to comment.