Fix(🩹): error handling in CSRF token storage retrieval #5855
Annotations
10 errors
middleware/csrf/csrf.go#L213
named return "raw" with type "[]byte" found (nonamedreturns)
|
middleware/csrf/csrf.go#L213
named return "err" with type "error" found (nonamedreturns)
|
middleware/csrf/csrf.go#L225
unhandled-error: Unhandled error in call to function csrf.storageManager.setRaw (revive)
|
middleware/csrf/csrf.go#L225
Error return value of `storageManager.setRaw` is not checked (errcheck)
|
middleware/csrf/csrf.go#L233
unhandled-error: Unhandled error in call to function csrf.storageManager.delRaw (revive)
|
middleware/csrf/csrf.go#L233
Error return value of `storageManager.delRaw` is not checked (errcheck)
|
middleware/csrf/session_manager.go#L29
named return "rawToken" with type "[]byte" found (nonamedreturns)
|
middleware/csrf/session_manager.go#L29
named return "err" with type "error" found (nonamedreturns)
|
middleware/csrf/storage_manager.go#L44
named return "raw" with type "[]byte" found (nonamedreturns)
|
middleware/csrf/storage_manager.go#L44
named return "err" with type "error" found (nonamedreturns)
|
This job failed
Loading