1
0
mirror of https://github.com/bitwarden/server synced 2026-01-07 11:03:37 +00:00

Add #nullable disable to AC code (#6052)

This commit is contained in:
Justin Baur
2025-07-08 17:32:49 -04:00
committed by GitHub
parent 8fdd26bf1c
commit da66400248
116 changed files with 454 additions and 118 deletions

View File

@@ -1,4 +1,7 @@
using System.Net;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.Net;
using Bit.Admin.AdminConsole.Models;
using Bit.Admin.Enums;
using Bit.Admin.Services;

View File

@@ -1,4 +1,7 @@
using System.ComponentModel.DataAnnotations;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.ComponentModel.DataAnnotations;
using System.Net;
using Bit.Admin.AdminConsole.Models;
using Bit.Admin.Enums;

View File

@@ -1,4 +1,7 @@
using System.ComponentModel.DataAnnotations;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.ComponentModel.DataAnnotations;
using Bit.Core.AdminConsole.Entities.Provider;
using Bit.Core.AdminConsole.Enums.Provider;
using Bit.Core.Billing.Enums;

View File

@@ -1,4 +1,7 @@
using System.ComponentModel.DataAnnotations;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.ComponentModel.DataAnnotations;
using Bit.Core.AdminConsole.Entities.Provider;
using Bit.Core.AdminConsole.Enums.Provider;
using Bit.SharedWeb.Utilities;

View File

@@ -1,4 +1,7 @@
using System.ComponentModel.DataAnnotations;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.ComponentModel.DataAnnotations;
using Bit.Core.AdminConsole.Entities.Provider;
using Bit.Core.AdminConsole.Enums.Provider;
using Bit.SharedWeb.Utilities;

View File

@@ -1,4 +1,7 @@
using System.ComponentModel.DataAnnotations;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.ComponentModel.DataAnnotations;
using System.Net;
using Bit.Core.AdminConsole.Entities;
using Bit.Core.AdminConsole.Entities.Provider;

View File

@@ -1,4 +1,7 @@
using System.ComponentModel.DataAnnotations;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.ComponentModel.DataAnnotations;
namespace Bit.Admin.AdminConsole.Models;

View File

@@ -1,4 +1,7 @@
using System.ComponentModel.DataAnnotations;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.ComponentModel.DataAnnotations;
using Bit.Admin.Models;
namespace Bit.Admin.AdminConsole.Models;

View File

@@ -1,4 +1,7 @@
using Bit.Core.AdminConsole.Entities;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Bit.Core.AdminConsole.Entities;
using Bit.Core.AdminConsole.Entities.Provider;
using Bit.Core.Entities;
using Bit.Core.Enums;

View File

@@ -1,4 +1,7 @@
using Bit.Admin.Models;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Bit.Admin.Models;
using Bit.Core.AdminConsole.Entities;
namespace Bit.Admin.AdminConsole.Models;

View File

@@ -1,4 +1,7 @@
using System.ComponentModel.DataAnnotations;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.ComponentModel.DataAnnotations;
using Bit.Core.AdminConsole.Entities.Provider;
using Bit.Core.AdminConsole.Enums.Provider;
using Bit.Core.AdminConsole.Models.Data.Provider;

View File

@@ -1,4 +1,7 @@
using Bit.Admin.Billing.Models;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Bit.Admin.Billing.Models;
using Bit.Core.AdminConsole.Entities.Provider;
using Bit.Core.AdminConsole.Enums.Provider;
using Bit.Core.AdminConsole.Models.Data.Provider;

View File

@@ -1,4 +1,7 @@
using Bit.Admin.Models;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Bit.Admin.Models;
using Bit.Core.AdminConsole.Entities.Provider;
namespace Bit.Admin.AdminConsole.Models;

View File

@@ -52,7 +52,7 @@
<td>
@if(connection.Enabled)
{
@if(@TempData["ConnectionActivated"] != null && @TempData["ConnectionActivated"].ToString() == @Model.Organization.Id.ToString())
@if(@TempData["ConnectionActivated"] != null && @TempData["ConnectionActivated"]!.ToString() == @Model.Organization.Id.ToString())
{
@if(connection.Type.Equals(OrganizationConnectionType.CloudBillingSync))
{

View File

@@ -53,7 +53,7 @@
&& @Model.Provider.Status.Equals(ProviderStatusType.Pending)
&& canResendEmailInvite)
{
@if(@TempData["InviteResentTo"] != null && @TempData["InviteResentTo"].ToString() == @user.UserId.Value.ToString())
@if(@TempData["InviteResentTo"] != null && @TempData["InviteResentTo"]!.ToString() == @user.UserId!.Value.ToString())
{
<button class="btn btn-outline-success btn-sm disabled" disabled>Invite Resent!</button>
}

View File

@@ -8,7 +8,7 @@
<script>
(() => {
togglePlanFeatures('@((byte)Model.PlanType)');
togglePlanFeatures('@((byte)Model.PlanType!)');
})();
</script>
}