Skip to content

Commit 385a4dc

Browse files
Potential fix for code scanning alert no. 262: Useless upcast
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 647e536 commit 385a4dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

NRZMyk.Server.Tests/Controllers/Organizations/ListUsersTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public async Task WhenQueryingOrganizationsWithExistingEntries_AddsLatestCryoAnd
5151
public async Task WhenQueryingOrganizationsWithNoEntries_LeavesCryoAndReceivingDateEmpty()
5252
{
5353
var sut = CreateSut(out var sentinelEntryRepository);
54-
sentinelEntryRepository.FirstOrDefaultAsync(Arg.Any<SentinelEntryByReceivingDateSpecification>()).Returns((SentinelEntry)null);
54+
sentinelEntryRepository.FirstOrDefaultAsync(Arg.Any<SentinelEntryByReceivingDateSpecification>()).Returns(null);
5555
sentinelEntryRepository.FirstOrDefaultAsync(Arg.Any<SentinelEntryByCryoDateSpecification>()).Returns((SentinelEntry)null);
5656

5757
var expectedResult = new List<Organization>(_organizations);

0 commit comments

Comments
 (0)