Skip to content

Commit 6c3562b

Browse files
committed
fix: null-check the correct variable
1 parent 9657e0b commit 6c3562b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/XIVLauncher.Common/Game/Launcher.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,7 @@ public Launcher(ISteam? steam, IUniqueIdCache uniqueIdCache, ISettings settings,
4242
this.uniqueIdCache = uniqueIdCache;
4343
this.settings = settings;
4444

45-
if (this.frontierUrlTemplate == null)
46-
throw new Exception("Frontier URL template is null, this is now required");
47-
48-
this.frontierUrlTemplate = frontierUrl;
45+
this.frontierUrlTemplate = frontierUrl ?? throw new Exception("Frontier URL template is null, this is now required");
4946

5047
ServicePointManager.Expect100Continue = false;
5148

0 commit comments

Comments
 (0)