Skip to content

Commit 2565ddd

Browse files
authored
Merge pull request #903 from dotnet/fixWarnings
Fix compiler warning
2 parents 3521924 + b9d3738 commit 2565ddd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/NerdBank.GitVersioning/VersionFile.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ protected VersionFile(GitContext context)
4444
public bool IsVersionDefined() => this.GetVersion() is object;
4545

4646
/// <inheritdoc cref="GetWorkingCopyVersion(out string?)"/>
47-
public VersionOptions? GetWorkingCopyVersion() => this.GetWorkingCopyVersion(out string _);
47+
public VersionOptions? GetWorkingCopyVersion() => this.GetWorkingCopyVersion(out _);
4848

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

0 commit comments

Comments
 (0)