Skip to content
This repository was archived by the owner on Nov 26, 2024. It is now read-only.

Commit 765dbf0

Browse files
author
Michel Casabianca
committed
Fixed warnings
1 parent 5c03cd1 commit 765dbf0

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

gobinsec/cache-memcached.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ func NewMemcachedConfig(config *MemcachedConfig) *MemcachedConfig {
2121
return config
2222
} else if os.Getenv("MEMCACHED_ADDRESS") != "" {
2323
address = os.Getenv("MEMCACHED_ADDRESS")
24-
exp, err := strconv.Atoi(os.Getenv("MEMCACHED_EXPIRATION"))
24+
exp, err := strconv.Atoi(os.Getenv("MEMCACHED_EXPIRATION")) // nolint:gosec // no overflow possible
2525
if err != nil {
2626
return nil
2727
}

gobinsec/cache-memcachier.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func NewMemcachierConfig(config *MemcachierConfig) *MemcachierConfig {
3131
username = os.Getenv("MEMCACHIER_USERNAME")
3232
password = os.Getenv("MEMCACHIER_PASSWORD")
3333
address = os.Getenv("MEMCACHIER_ADDRESS")
34-
exp, err := strconv.Atoi(os.Getenv("MEMCACHIER_EXPIRATION"))
34+
exp, err := strconv.Atoi(os.Getenv("MEMCACHIER_EXPIRATION")) // nolint:gosec // no overflow possible
3535
if err != nil {
3636
return nil
3737
}

0 commit comments

Comments
 (0)