fix some linter errors #2
Annotations
8 errors and 2 warnings
lint:
cmd/whawty-nginx-sso/web.go#L163
S1023: redundant `return` statement (gosimple)
|
lint:
cookie/store_test.go#L235
S1024: should use time.Until instead of t.Sub(time.Now()) (gosimple)
|
lint:
ui/ui.go#L148
S1034: assigning the result of this type assertion to a variable (switch obj := obj.(type)) could eliminate type assertions in switch cases (gosimple)
|
lint:
ui/ui.go#L150
S1034(related information): could eliminate this type assertion (gosimple)
|
lint:
cookie/ed25519_test.go#L109
ineffectual assignment to pub (ineffassign)
|
lint:
cookie/ed25519_test.go#L147
ineffectual assignment to priv (ineffassign)
|
lint:
cmd/whawty-nginx-sso/main.go#L34
SA1019: "io/ioutil" has been deprecated since Go 1.19: As of Go 1.16, the same functionality is now provided by package [io] or package [os], and those implementations should be preferred in new code. See the specific function documentation for details. (staticcheck)
|
lint
issues found
|
lint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
lint
Failed to restore: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2
|