Skip to content

Fix(🩹): error handling in CSRF token storage retrieval #5854

Fix(🩹): error handling in CSRF token storage retrieval

Fix(🩹): error handling in CSRF token storage retrieval #5854

Triggered via pull request May 30, 2024 21:13
Status Failure
Total duration 59s
Artifacts

linter.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
lint: middleware/csrf/csrf.go#L110
Error return value is not checked (errcheck)
lint: middleware/csrf/csrf.go#L213
named return "err" with type "error" found (nonamedreturns)
lint: middleware/csrf/csrf.go#L213
named return "raw" with type "[]byte" found (nonamedreturns)
lint: middleware/csrf/csrf.go#L225
unhandled-error: Unhandled error in call to function csrf.storageManager.setRaw (revive)
lint: middleware/csrf/csrf.go#L225
Error return value of `storageManager.setRaw` is not checked (errcheck)
lint: middleware/csrf/csrf.go#L233
unhandled-error: Unhandled error in call to function csrf.storageManager.delRaw (revive)
lint: middleware/csrf/csrf.go#L233
Error return value of `storageManager.delRaw` is not checked (errcheck)
lint: middleware/csrf/session_manager.go#L29
named return "rawToken" with type "[]byte" found (nonamedreturns)
lint: middleware/csrf/session_manager.go#L29
named return "err" with type "error" found (nonamedreturns)
lint: middleware/csrf/storage_manager.go#L44
named return "raw" with type "[]byte" found (nonamedreturns)