Skip to content

Commit 8bf975b

Browse files
committed
lint: silence "type HostFileConfig is unused (unused)"
Signed-off-by: Akihiro Suda <[email protected]>
1 parent 4b9fd6b commit 8bf975b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

remotes/docker/config/hosts.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,7 @@ func parseHostsFile(baseDir string, b []byte) ([]hostConfig, error) {
332332

333333
// HACK: we want to keep toml parsing structures private in this package, however go-toml ignores private embedded types.
334334
// so we remap it to a public type within the func body, so technically it's public, but not possible to import elsewhere.
335+
//nolint:unused
335336
type HostFileConfig = hostFileConfig
336337

337338
c := struct {

0 commit comments

Comments
 (0)