Skip to content

Commit

Permalink
Merge pull request #903 from dotnet/fixWarnings
Browse files Browse the repository at this point in the history
Fix compiler warning
  • Loading branch information
AArnott committed Mar 7, 2023
2 parents 3521924 + b9d3738 commit 2565ddd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/NerdBank.GitVersioning/VersionFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ protected VersionFile(GitContext context)
public bool IsVersionDefined() => this.GetVersion() is object;

/// <inheritdoc cref="GetWorkingCopyVersion(out string?)"/>
public VersionOptions? GetWorkingCopyVersion() => this.GetWorkingCopyVersion(out string _);
public VersionOptions? GetWorkingCopyVersion() => this.GetWorkingCopyVersion(out _);

/// <summary>
/// Reads the version file from the working tree and returns the <see cref="VersionOptions"/> deserialized from it.
Expand Down Expand Up @@ -213,7 +213,7 @@ protected static VersionOptions TryReadVersionFile(TextReader versionTextContent
{
if (parentDirectory is object)
{
result = this.GetWorkingCopyVersion(parentDirectory, out string _);
result = this.GetWorkingCopyVersion(parentDirectory, out _);
if (result is object)
{
JsonConvert.PopulateObject(
Expand Down

0 comments on commit 2565ddd

Please sign in to comment.