1
0
mirror of https://github.com/bitwarden/server synced 2026-02-18 02:19:06 +00:00

fix: remove vestigial null check and nullable enable

This commit is contained in:
Ike Kottlowski
2026-01-29 16:06:06 -05:00
parent f609c2cc7c
commit 81422f3960
2 changed files with 3 additions and 7 deletions

View File

@@ -34,7 +34,7 @@ public class DeleteEmergencyAccessCommand(
var emergencyAccessDetails = await _emergencyAccessRepository.GetManyDetailsByGrantorIdAsync(grantorId);
// if there is nothing return an empty array and do not send an email
if (emergencyAccessDetails == null || emergencyAccessDetails.Count == 0)
if (emergencyAccessDetails.Count == 0)
{
return emergencyAccessDetails;
}
@@ -42,7 +42,7 @@ public class DeleteEmergencyAccessCommand(
var (grantorEmails, granteeEmails) = await DeleteEmergencyAccessAsync(emergencyAccessDetails);
// Send notification email to grantor
await SendEmergencyAccessRemoveGranteesEmailAsync(grantorEmails, granteeEmails); ;
await SendEmergencyAccessRemoveGranteesEmailAsync(grantorEmails, granteeEmails);
return emergencyAccessDetails;
}

View File

@@ -1,14 +1,10 @@
#nullable enable
using System.Diagnostics;
using System.Diagnostics;
using Bit.Core.AdminConsole.Enums.Provider;
using Bit.Core.Auth.Enums;
using Bit.Core.Enums;
using Bit.Infrastructure.EntityFramework.Repositories.Queries;
using Microsoft.EntityFrameworkCore;
#nullable enable
namespace Bit.Infrastructure.EntityFramework.Repositories;
public static class DatabaseContextExtensions