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