Skip to content

Commit 54f2767

Browse files
committed
disable nullability warnings
1 parent b60c2f6 commit 54f2767

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Smdn.Net.AddressResolution/Smdn.Net.AddressResolution/MacAddressResolver.AddressTable.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ private bool FilterAddressTableEntryForNetworkInterface(AddressTableEntry entry)
8383
// exclude entries that are irrelevant to the network interface
8484
if (
8585
entry.InterfaceId is not null &&
86-
!entry.InterfaceIdEquals(networkInterface.Id)
86+
!entry.InterfaceIdEquals(networkInterface!.Id)
8787
) {
8888
return false;
8989
}
@@ -94,14 +94,14 @@ entry.InterfaceId is not null &&
9494
// exclude addresses of address families not supported by the network interface
9595
if (
9696
entry.IPAddress.AddressFamily == AddressFamily.InterNetwork &&
97-
!networkInterface.Supports(NetworkInterfaceComponent.IPv4)
97+
!networkInterface!.Supports(NetworkInterfaceComponent.IPv4)
9898
) {
9999
return false;
100100
}
101101

102102
if (
103103
entry.IPAddress.AddressFamily == AddressFamily.InterNetworkV6 &&
104-
!networkInterface.Supports(NetworkInterfaceComponent.IPv6)
104+
!networkInterface!.Supports(NetworkInterfaceComponent.IPv6)
105105
) {
106106
return false;
107107
}

0 commit comments

Comments
 (0)