Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

golangci-lint gosimple shows the following errors #210

Open
geekthattweaks opened this issue Apr 22, 2019 · 0 comments
Open

golangci-lint gosimple shows the following errors #210

geekthattweaks opened this issue Apr 22, 2019 · 0 comments
Labels

Comments

@geekthattweaks
Copy link
Member

authentication/login_handler.go:288:2: S1023: redundant `return` statement (gosimple)
	return
	^
authentication/minsession_test.go:59:2: S1011: should replace loop with `localCookies = append(localCookies, stc1...)` (gosimple)
	for _, cookie := range stc1 {
	^
authentication/minsession_test.go:329:2: S1011: should replace loop with `localCookies1 = append(localCookies1, stc1...)` (gosimple)
	for _, cookie := range stc1 {
	^
authentication/minsession_test.go:339:2: S1011: should replace loop with `localCookies2 = append(localCookies2, stc2...)` (gosimple)
	for _, cookie := range stc2 {
	^
authentication/minsession_test.go:572:25: SA4010: this result of append is never used, except maybe in other appends (staticcheck)
		localCookies1 = append(localCookies1, cookie)
		                      ^
config/config_test.go:445:2: S1021: should merge variable declaration with assignment on next line (gosimple)
	var e error
	^
config/httpmultiserver.go:97:4: S1005: '_ = <-ch' can be simplified to '<-ch' (gosimple)
			_ = <-gErrChan
			^
monitor/minmonitor.go:650:2: S1023: redundant `return` statement (gosimple)
	return
	^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant