From 87f294023319fddebcc7ccdba6525dcc33c762e0 Mon Sep 17 00:00:00 2001 From: Michael Baird Date: Wed, 14 Jun 2017 09:26:13 -0500 Subject: [PATCH] declare multiple values in the same switch case --- server.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/server.go b/server.go index 57f3291eb..37fadedd5 100644 --- a/server.go +++ b/server.go @@ -506,13 +506,7 @@ func CountOpenFiles() int { count := 0 switch runtime.GOOS { - case "darwin": - fallthrough - case "linux": - fallthrough - case "unix": - fallthrough - case "freebsd": + case "darwin", "linux", "unix", "freebsd": // -b option avoid kernel blocks pid := os.Getpid() out, err := exec.Command("/bin/sh", "-c", fmt.Sprintf("lsof -b -p %v", pid)).Output()