Skip to content

Commit

Permalink
happy linter
Browse files Browse the repository at this point in the history
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com>
  • Loading branch information
LukashonakV committed Apr 28, 2023
1 parent e253c34 commit 8c83af7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/modules/network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -497,8 +497,7 @@ int waybar::modules::Network::handleEvents(struct nl_msg *msg, void *data) {

net->ifname_ = new_ifname;
net->ifid_ = ifi->ifi_index;
if (ifi->ifi_flags & IFF_POINTOPOINT)
net->is_p2p_ = true;
if (ifi->ifi_flags & IFF_POINTOPOINT) net->is_p2p_ = true;
if (carrier.has_value()) {
net->carrier_ = carrier.value();
}
Expand Down Expand Up @@ -543,8 +542,7 @@ int waybar::modules::Network::handleEvents(struct nl_msg *msg, void *data) {
for (; RTA_OK(ifa_rta, attrlen); ifa_rta = RTA_NEXT(ifa_rta, attrlen)) {
switch (ifa_rta->rta_type) {
case IFA_ADDRESS:
if (net->is_p2p_)
continue;
if (net->is_p2p_) continue;
case IFA_LOCAL:
char ipaddr[INET6_ADDRSTRLEN];
if (!is_del_event) {
Expand Down

0 comments on commit 8c83af7

Please sign in to comment.