diff --git a/internal/config/load.go b/internal/config/load.go index 808075d..025ff6e 100644 --- a/internal/config/load.go +++ b/internal/config/load.go @@ -139,7 +139,7 @@ func Load(cmd *cobra.Command) (*Config, error) { return nil, err } - castEntry.Port = int(port) + castEntry.Port = int(port) //nolint:gosec } if ip := net.ParseIP(u.Hostname()); ip == nil { diff --git a/internal/device/capabilities.go b/internal/device/capabilities.go index b82974f..3e88228 100644 --- a/internal/device/capabilities.go +++ b/internal/device/capabilities.go @@ -15,7 +15,7 @@ func (c *Capability) UnmarshalString(s string) error { return err } - *c = Capability(i & 31) + *c = Capability(i & 31) //nolint:gosec return nil }