Skip to content

Commit db849d4

Browse files
yaronfcursoragent
andcommitted
fix: silence SA1008 on lowercase date header lookup
parsedMessage headers are intentionally lowercased; same nolint pattern as signature header lookups. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 52104b9 commit db849d4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

signatures.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -931,7 +931,7 @@ func applyPolicyCreated(psi *psiSignature, message parsedMessage, config VerifyC
931931
}
932932

933933
if config.dateWithin != 0 {
934-
dateHdr, ok := message.headers["date"]
934+
dateHdr, ok := message.headers["date"] //nolint:staticcheck // SA1008: lowercase map keys by design
935935
if ok {
936936
if len(dateHdr) > 1 {
937937
return fmt.Errorf("multiple Date headers")

0 commit comments

Comments
 (0)