Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
karkarl committed Aug 23, 2023
1 parent 273e2a7 commit 3e58993
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions WinUIGallery/DataModel/ControlInfoDataSource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ private async Task GetControlInfoDataAsync()

controlInfoDataGroup.Groups.SelectMany(g => g.Items).ToList().ForEach(item =>
{
#nullable enable
string? badgeString = item switch
{
{ IsNew: true } => "New",
Expand All @@ -230,6 +231,7 @@ private async Task GetControlInfoDataAsync()

item.BadgeString = badgeString;
item.IncludedInBuild = pageType is not null;
#nullable disable
});

foreach (var group in controlInfoDataGroup.Groups)
Expand Down
4 changes: 2 additions & 2 deletions WinUIGallery/WinUIGallery.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@
CVE-2019-0657, CVE-2019-0980, and CVE-2019-0981. Since no meta-package depends on version 4.3.2, which
addresses those vulnerabilites, we need to pull it in ourselves. -->
<PackageReference Include="System.Private.Uri" />
<!-- Include package/runtime version numbers -->
<Compile Include="$(MicrosoftWindowsAppSDKPackageDir)include\WindowsAppSDK-VersionInfo.cs" />
</ItemGroup>

<ItemGroup Condition="'$(IsInWinUIRepo)' != 'true'">
Expand All @@ -115,8 +117,6 @@
</ItemGroup>

<ItemGroup>
<!-- Include package/runtime version numbers -->
<Compile Include="$(MicrosoftWindowsAppSDKPackageDir)include\WindowsAppSDK-VersionInfo.cs" />
<Compile Remove="CollectionsInterop.cs" />
<Compile Remove="Behaviors\ImageScrollBehavior.cs" />
<Compile Remove="ControlPages\ScrollViewer2Page.xaml.cs" />
Expand Down

0 comments on commit 3e58993

Please sign in to comment.