Skip to content

Commit f4b7c89

Browse files
committed
fix warnings
1 parent f81a3f3 commit f4b7c89

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

  • IDisposableAnalyzers.Test/IDISP026SealAsyncDisposableTests
  • ValidCode.Web/InstanceMapRepro

IDisposableAnalyzers.Test/IDISP026SealAsyncDisposableTests/CodeFix.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public ValueTask DisposeAsync()
4040
return ValueTask.CompletedTask;
4141
}
4242
}
43-
}"; ;
43+
}";
4444
RoslynAssert.CodeFix(Analyzer, Fix, ExpectedDiagnostic, before, after);
4545
}
4646
}

ValidCode.Web/InstanceMapRepro/Maybe.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ private Maybe(bool hasValue, [MaybeNull] T value)
2727
public bool HasValue { get; }
2828

2929
/// <inheritdoc />
30-
[MaybeNull]
31-
public T Value
30+
public T? Value
3231
{
3332
#pragma warning disable CS8766 // Nullability of reference types in return type doesn't match implicitly implemented member (possibly because of nullability attributes).
3433
get

0 commit comments

Comments
 (0)