Merge pull request #2283 from kvanzuijlen/golint

Updated linters
This commit is contained in:
Joel Speed
2023-10-25 11:36:44 +01:00
committed by GitHub
9 changed files with 18 additions and 22 deletions
+2 -3
View File
@@ -448,9 +448,8 @@ func (patTest *PassAccessTokenTest) getEndpointWithCookie(cookie string, endpoin
value = strings.TrimPrefix(field, keyPrefix)
if value != field {
break
} else {
value = ""
}
value = ""
}
if value == "" {
return 0, ""
@@ -612,7 +611,7 @@ func (sipTest *SignInPageTest) GetEndpoint(endpoint string) (int, string) {
type AlwaysSuccessfulValidator struct {
}
func (AlwaysSuccessfulValidator) Validate(user, password string) bool {
func (AlwaysSuccessfulValidator) Validate(_, _ string) bool {
return true
}