Fix: Incorrect conversion between integer types

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2023-06-10 00:36:12 +02:00
parent 880ee5851a
commit be4a0ec91d
Signed by: luzifer
GPG key ID: D91C3E91E4CAD6F5

View file

@ -77,12 +77,12 @@ func (s storageRedis) redisExpiry() int {
return 0
}
e, err := strconv.ParseInt(expStr, 10, 64)
e, err := strconv.Atoi(expStr)
if err != nil {
return 0
}
return int(e)
return e
}
func (s storageRedis) redisKey() string {