net: use multi-value case clause instead of fallthrough

Found using https://go-critic.github.io/overview#emptyFallthrough-ref
This commit is contained in:
Iskander Sharipov 2018-09-13 23:52:36 +03:00
parent eb1f1ab16f
commit 3684fce88a
1 changed files with 1 additions and 3 deletions

View File

@ -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)