1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

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 <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2019-08-28 17:11:30 +02:00
parent 9419024554
commit 3926b5f09d
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C
2 changed files with 2 additions and 0 deletions

View file

@ -497,6 +497,7 @@ type sourceMeta struct {
Size int64 Size int64
} }
//nolint:structcheck
type cachedSource struct { type cachedSource struct {
sourceMeta sourceMeta
refs map[*cachedSourceRef]struct{} refs map[*cachedSourceRef]struct{}

View file

@ -5,6 +5,7 @@ import (
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
) )
//nolint:structcheck
type driverQuota struct { type driverQuota struct {
quotaCtl *quota.Control quotaCtl *quota.Control
quotaOpt quota.Quota quotaOpt quota.Quota