lint: silence "type HostFileConfig
is unused (unused)"
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
This commit is contained in:
parent
4b9fd6ba5f
commit
8bf975b4fa
@ -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.
|
// 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.
|
// 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
|
type HostFileConfig = hostFileConfig
|
||||||
|
|
||||||
c := struct {
|
c := struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user