From 8bf975b4fa173388e428e96f408a9f1e62836ad1 Mon Sep 17 00:00:00 2001 From: Akihiro Suda Date: Tue, 14 Feb 2023 15:06:44 +0900 Subject: [PATCH] lint: silence "type `HostFileConfig` is unused (unused)" Signed-off-by: Akihiro Suda --- remotes/docker/config/hosts.go | 1 + 1 file changed, 1 insertion(+) diff --git a/remotes/docker/config/hosts.go b/remotes/docker/config/hosts.go index 135b100fb..aa8ea959e 100644 --- a/remotes/docker/config/hosts.go +++ b/remotes/docker/config/hosts.go @@ -332,6 +332,7 @@ func parseHostsFile(baseDir string, b []byte) ([]hostConfig, error) { // HACK: we want to keep toml parsing structures private in this package, however go-toml ignores private embedded types. // so we remap it to a public type within the func body, so technically it's public, but not possible to import elsewhere. + //nolint:unused type HostFileConfig = hostFileConfig c := struct {