From 3926b5f09dbdaec6974829afc8aba974130564fe Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Wed, 28 Aug 2019 17:11:30 +0200 Subject: [PATCH] structcheck: nolint for false positives ``` builder/fscache/fscache.go:505:2: `src` is unused (structcheck) builder/fscache/fscache.go:507:2: `cached` is unused (structcheck) daemon/graphdriver/vfs/quota_linux.go:9:2: `quotaCtl` is unused (structcheck) daemon/graphdriver/vfs/quota_linux.go:10:2: `quotaOpt` is unused (structcheck) ``` Signed-off-by: Sebastiaan van Stijn --- builder/fscache/fscache.go | 1 + daemon/graphdriver/vfs/quota_linux.go | 1 + 2 files changed, 2 insertions(+) diff --git a/builder/fscache/fscache.go b/builder/fscache/fscache.go index 8897fe16d8..4c3b9a6cd5 100644 --- a/builder/fscache/fscache.go +++ b/builder/fscache/fscache.go @@ -497,6 +497,7 @@ type sourceMeta struct { Size int64 } +//nolint:structcheck type cachedSource struct { sourceMeta refs map[*cachedSourceRef]struct{} diff --git a/daemon/graphdriver/vfs/quota_linux.go b/daemon/graphdriver/vfs/quota_linux.go index f579fc092b..3af797819e 100644 --- a/daemon/graphdriver/vfs/quota_linux.go +++ b/daemon/graphdriver/vfs/quota_linux.go @@ -5,6 +5,7 @@ import ( "github.com/sirupsen/logrus" ) +//nolint:structcheck type driverQuota struct { quotaCtl *quota.Control quotaOpt quota.Quota