From 3684fce88a4a443dba25224eb70045c91a6e478e Mon Sep 17 00:00:00 2001 From: Iskander Sharipov Date: Thu, 13 Sep 2018 23:52:36 +0300 Subject: [PATCH] net: use multi-value case clause instead of fallthrough Found using https://go-critic.github.io/overview#emptyFallthrough-ref --- net/net_linux.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/net/net_linux.go b/net/net_linux.go index fc2b22e..616c10a 100644 --- a/net/net_linux.go +++ b/net/net_linux.go @@ -395,9 +395,7 @@ func statsFromInodes(root string, pid int32, tmap []netConnectionKindType, inode var ls []connTmp path = fmt.Sprintf("%s/net/%s", root, t.filename) switch t.family { - case syscall.AF_INET: - fallthrough - case syscall.AF_INET6: + case syscall.AF_INET, syscall.AF_INET6: ls, err = processInet(path, t, inodes, pid) case syscall.AF_UNIX: ls, err = processUnix(path, t, inodes, pid)