mirror of
https://github.com/bitechdev/ResolveSpec.git
synced 2026-10-08 06:16:28 +00:00
chore(security): apply golangci-lint fixes to lookup and security packages
This commit is contained in:
@@ -38,7 +38,7 @@ func normalizeTimes(raw []byte) []byte {
|
||||
func fixTimes(m map[string]any) {
|
||||
for k, v := range m {
|
||||
s, ok := v.(string)
|
||||
if !ok || !(strings.HasSuffix(k, "_at") || k == "expiry") {
|
||||
if !ok || (!strings.HasSuffix(k, "_at") && k != "expiry") {
|
||||
continue
|
||||
}
|
||||
if _, err := time.Parse(time.RFC3339Nano, s); err == nil {
|
||||
|
||||
Reference in New Issue
Block a user