Disable build warning in layout (#3028)

This commit is contained in:
d11n
2021-10-29 12:06:15 +02:00
committed by GitHub
parent 3f176a6b6b
commit 274be7c1bc

View File

@@ -20,6 +20,8 @@
@functions {
// The .NET function for inserting classes requires this to be async
// ReSharper disable once CSharpWarnings::CS1998
#pragma warning disable CS1998
private async Task Logo(string classes = "")
{
<a href="~/" class="navbar-brand py-2 js-scroll-trigger @classes">
@@ -30,6 +32,7 @@
}
</a>
}
#pragma warning restore CS1998
}
<!DOCTYPE html>