Skip to content

golangci-lint gosimple shows the following errors #210

@geekthattweaks

Description

@geekthattweaks
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
	^

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions