Skip to content

Commit

Permalink
fix a warning
Browse files Browse the repository at this point in the history
  • Loading branch information
goaaats committed Jun 5, 2024
1 parent 3e98f71 commit 13f9697
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Plogon/BuildProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public struct BuildProcessorSetup
/// <summary>
/// Path to file containing overrides for the Dalamud version used.
/// </summary>
public FileInfo BuildOverridesFile { get; set; }
public FileInfo? BuildOverridesFile { get; set; }

/// <summary>
/// Whether or not non-default build images are allowed.
Expand Down
4 changes: 2 additions & 2 deletions Plogon/DalamudReleases.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ private class Overrides
/// </summary>
/// <param name="overridesFile">File containing overrides.</param>
/// <param name="releasesDir">Where releases should go</param>
public DalamudReleases(FileInfo overridesFile, DirectoryInfo releasesDir)
public DalamudReleases(FileInfo? overridesFile, DirectoryInfo releasesDir)
{
this.ReleasesDir = releasesDir;

if (overridesFile.Exists)
if (overridesFile?.Exists ?? false)
this.overrides = Toml.ToModel<Overrides>(overridesFile.OpenText().ReadToEnd());
}

Expand Down

0 comments on commit 13f9697

Please sign in to comment.