Remove redundant if condition

This commit is contained in:
Harishankar G
2025-02-26 16:06:58 +05:30
parent 212c676251
commit 8bd0285c88

View File

@ -538,11 +538,6 @@ int waybar::modules::Network::handleEvents(struct nl_msg *msg, void *data) {
return NL_OK; return NL_OK;
} }
if ((ifa->ifa_family != AF_INET && net->addr_pref_ == ip_addr_pref::IPV4) ||
(ifa->ifa_family != AF_INET6 && net->addr_pref_ == ip_addr_pref::IPV6)) {
return NL_OK;
}
// We ignore address mark as scope for the link or host, // We ignore address mark as scope for the link or host,
// which should leave scope global addresses. // which should leave scope global addresses.
if (ifa->ifa_scope >= RT_SCOPE_LINK) { if (ifa->ifa_scope >= RT_SCOPE_LINK) {