From 86f16a21d3a5699a917b12f591e251c775d6640a Mon Sep 17 00:00:00 2001 From: Gabe Cook Date: Fri, 11 Oct 2024 02:41:13 -0500 Subject: [PATCH] test(lint): Suppress int overflow warnings [skip ci] --- internal/config/load.go | 2 +- internal/device/capabilities.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 }