Skip to content

Commit

Permalink
net: use multi-value case clause instead of fallthrough
Browse files Browse the repository at this point in the history
  • Loading branch information
quasilyte committed Sep 13, 2018
1 parent eb1f1ab commit 3684fce
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions net/net_linux.go
Expand Up @@ -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)
Expand Down

0 comments on commit 3684fce

Please sign in to comment.