Fix Null Warnings (#874)

* Fixing null warnings

* Fix null warnings
Fix other compiler warnings
This commit is contained in:
Steve Smith
2023-03-20 11:52:14 -04:00
committed by GitHub
parent a2ebd3fe26
commit d2412a84a9
38 changed files with 400 additions and 285 deletions

View File

@@ -16,10 +16,13 @@
</div>
<div class="row">
<div class="col-md-12">
@for (var row = 0; row < Model.RecoveryCodes.Length; row += 2)
@if (Model.RecoveryCodes != null)
{
<code>@Model.RecoveryCodes[row]</code><text>&nbsp;</text><code>@Model.RecoveryCodes[row + 1]</code><br />
@for (var row = 0; row < Model.RecoveryCodes.Length; row += 2)
{
<code>@Model.RecoveryCodes[row]</code><text>&nbsp;</text><code>@Model.RecoveryCodes[row + 1]</code><br />
}
}
</div>
</div>
© 2021 GitHub, Inc.
© 2023 GitHub, Inc.

View File

@@ -30,15 +30,15 @@
</article>
<article class="esh-orders-detail-items row">
<section class="esh-orders-detail-item col-xs-12">@Model.ShippingAddress.Street</section>
<section class="esh-orders-detail-item col-xs-12">@Model.ShippingAddress?.Street</section>
</article>
<article class="esh-orders-detail-items row">
<section class="esh-orders-detail-item col-xs-12">@Model.ShippingAddress.City</section>
<section class="esh-orders-detail-item col-xs-12">@Model.ShippingAddress?.City</section>
</article>
<article class="esh-orders-detail-items row">
<section class="esh-orders-detail-item col-xs-12">@Model.ShippingAddress.Country</section>
<section class="esh-orders-detail-item col-xs-12">@Model.ShippingAddress?.Country</section>
</article>
</section>

View File

@@ -1,4 +1,4 @@
@if (Context.User.Identity.IsAuthenticated)
@if (Context!.User!.Identity!.IsAuthenticated)
{
<section class="col-lg-4 col-md-5 col-xs-12">
<div class="esh-identity">