Skip to content

Commit 95e7833

Browse files
Fix build warning (#462)
* fix xunit1031 warning * resolve nullable warning * remove nullable * revert change to RazorPages project
1 parent f88aec9 commit 95e7833

File tree

5 files changed

+3
-6
lines changed

5 files changed

+3
-6
lines changed

examples/ConsoleApp/ConsoleApp.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
<OutputType>Exe</OutputType>
55
<TargetFramework>net6.0</TargetFramework>
66
<ImplicitUsings>enable</ImplicitUsings>
7-
<Nullable>enable</Nullable>
87
</PropertyGroup>
98

109
<ItemGroup>

examples/FeatureFlagDemo/FeatureFlagDemo.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
<PropertyGroup>
44
<TargetFramework>net6.0</TargetFramework>
5-
<Nullable>enable</Nullable>
65
<ImplicitUsings>enable</ImplicitUsings>
76
</PropertyGroup>
87

examples/FeatureFlagDemo/Views/Shared/Error.cshtml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace FeatureFlagDemo.Pages.Shared
88
[IgnoreAntiforgeryToken]
99
public class ErrorModel : PageModel
1010
{
11-
public string? RequestId { get; set; }
11+
public string RequestId { get; set; }
1212

1313
public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
1414

examples/TargetingConsoleApp/TargetingConsoleApp.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
<OutputType>Exe</OutputType>
55
<TargetFramework>net6.0</TargetFramework>
66
<ImplicitUsings>enable</ImplicitUsings>
7-
<Nullable>enable</Nullable>
87
</PropertyGroup>
98

109
<ItemGroup>

tests/Tests.FeatureManagement/FeatureManagement.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -752,11 +752,11 @@ public async Task ThreadsafeSnapshot()
752752

753753
await Task.WhenAll(tasks);
754754

755-
bool result = tasks.First().Result;
755+
bool result = await tasks.First();
756756

757757
foreach (Task<bool> t in tasks)
758758
{
759-
Assert.Equal(result, t.Result);
759+
Assert.Equal(result, await t);
760760
}
761761
}
762762

0 commit comments

Comments
 (0)