Skip to content

Commit

Permalink
lint: silence "type HostFileConfig is unused (unused)"
Browse files Browse the repository at this point in the history
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
(cherry picked from commit 8bf975b)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
  • Loading branch information
AkihiroSuda authored and thaJeztah committed Aug 28, 2023
1 parent e6b268b commit 6648df1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions remotes/docker/config/hosts.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 6648df1

Please sign in to comment.