fix: godoc linter warnings (TODOs)

Signed-off-by: Mario Constanti <mario.constanti@mercedes-benz.com>
This commit is contained in:
Mario Constanti 2024-02-22 09:30:20 +01:00
parent acc17eafcd
commit b0e3f78fbb
11 changed files with 25 additions and 1 deletions

View file

@ -546,6 +546,7 @@ func (d *timeToLive) Duration() time.Duration {
slog.With(slog.Any("error", err)).Error("failed to parse duration")
return appdefaults.DefaultJWTTTL
}
// nolint:golangci-lint,godox
// TODO(gabriel-samfira): should we have a minimum TTL?
if duration < appdefaults.DefaultJWTTTL {
return appdefaults.DefaultJWTTTL