Skip to content

Commit

Permalink
test(lint): Suppress int overflow warnings [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Oct 11, 2024
1 parent ff3530c commit 86f16a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/config/load.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion internal/device/capabilities.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 86f16a2

Please sign in to comment.