Fix(🩹): error handling in CSRF token storage retrieval #6316
Annotations
10 errors
golangci-lint:
middleware/csrf/csrf.go#L111
use of `println` forbidden by pattern `^print(ln)?$` (forbidigo)
|
golangci-lint:
middleware/csrf/csrf.go#L157
empty-lines: extra empty line at the start of a block (revive)
|
golangci-lint:
middleware/csrf/csrf.go#L157
unnecessary leading newline (whitespace)
|
golangci-lint:
middleware/csrf/csrf.go#L160
empty-lines: extra empty line at the start of a block (revive)
|
golangci-lint:
middleware/csrf/csrf.go#L160
unnecessary leading newline (whitespace)
|
golangci-lint:
middleware/csrf/csrf_test.go#L1515
unused-receiver: method receiver 'm' is not referenced in method's body, consider removing or renaming it as _ (revive)
|
golangci-lint:
middleware/csrf/csrf_test.go#L1515
unused-parameter: parameter 'key' seems to be unused, consider removing or renaming it as _ (revive)
|
golangci-lint:
middleware/csrf/csrf_test.go#L1516
fmt.Errorf can be replaced with errors.New (perfsprint)
|
golangci-lint:
middleware/csrf/csrf_test.go#L1519
unused-receiver: method receiver 'm' is not referenced in method's body, consider removing or renaming it as _ (revive)
|
golangci-lint:
middleware/csrf/csrf_test.go#L1519
unused-parameter: parameter 'key' seems to be unused, consider removing or renaming it as _ (revive)
|
Loading