summaryrefslogtreecommitdiff
path: root/libnetwork
diff options
context:
space:
mode:
authorSebastiaan van Stijn <github@gone.nl>2022-07-04 10:12:20 +0200
committerSebastiaan van Stijn <github@gone.nl>2022-07-04 10:15:28 +0200
commit968ff5ab44b1846964e832d4509e17f814d6116d (patch)
tree4d0d321e2ee286159169e73330372732afe04290 /libnetwork
parent10c56efa9730cc84274593de89c4cc90cbc83ae6 (diff)
downloaddocker-968ff5ab44b1846964e832d4509e17f814d6116d.tar.gz
fix some minor linting issues
libnetwork/firewall_linux.go:11:21: var-declaration: should drop = nil from declaration of var ctrl; it is the zero value (revive) ctrl *controller = nil ^ distribution/pull_v2_test.go:213:4: S1038: should use t.Fatalf(...) instead of t.Fatal(fmt.Sprintf(...)) (gosimple) t.Fatal(fmt.Sprintf("expected formatPlatform to show windows platform with a version, but got '%s'", result)) ^ integration-cli/docker_cli_build_test.go:5951:3: S1038: should use c.Skipf(...) instead of c.Skip(fmt.Sprintf(...)) (gosimple) c.Skip(fmt.Sprintf("Bug fixed in 18.06 or higher.Skipping it for %s", testEnv.DaemonInfo.ServerVersion)) ^ integration-cli/docker_cli_daemon_test.go:240:3: S1038: should use c.Skipf(...) instead of c.Skip(fmt.Sprintf(...)) (gosimple) c.Skip(fmt.Sprintf("New base device size (%v) must be greater than (%s)", units.HumanSize(float64(newBasesizeBytes)), units.HumanSize(float64(oldBasesizeBytes)))) ^ Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Diffstat (limited to 'libnetwork')
-rw-r--r--libnetwork/firewall_linux.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/libnetwork/firewall_linux.go b/libnetwork/firewall_linux.go
index 590e61f2af..a990ec8e91 100644
--- a/libnetwork/firewall_linux.go
+++ b/libnetwork/firewall_linux.go
@@ -7,9 +7,7 @@ import (
const userChain = "DOCKER-USER"
-var (
- ctrl *controller = nil
-)
+var ctrl *controller
func setupArrangeUserFilterRule(c *controller) {
ctrl = c