Skip to content

Commit

Permalink
[#1259] Applied a review suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
fivitti authored and msiodelski committed Jan 2, 2024
1 parent c7faba0 commit c896539
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions webui/src/app/subnets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ export function hasDifferentLocalSubnetPools(subnet: Subnet): boolean {
// Check for different address pools.
if (subnet.localSubnets[i].pools && subnet.localSubnets[0].pools) {
for (const pool of subnet.localSubnets[i].pools) {
if (subnet.localSubnets[0].pools.some((p) => p.pool != pool.pool)) {
if (subnet.localSubnets[0].pools.some((p) => p.pool !== pool.pool)) {
return true
}
}
Expand All @@ -299,9 +299,9 @@ export function hasDifferentLocalSubnetPools(subnet: Subnet): boolean {
if (
subnet.localSubnets[0].prefixDelegationPools.some((p) => {
return (
p.prefix != pool.prefix ||
p.delegatedLength != pool.delegatedLength ||
p.excludedPrefix != pool.excludedPrefix
p.prefix !== pool.prefix ||
p.delegatedLength !== pool.delegatedLength ||
p.excludedPrefix !== pool.excludedPrefix
)
})
) {
Expand Down

0 comments on commit c896539

Please sign in to comment.