mirror of
https://github.com/drakkan/sftpgo.git
synced 2024-11-22 07:30:25 +00:00
fix lint configuration and a warning
This commit is contained in:
parent
23d9ebfc91
commit
d4bfc3f6b5
2 changed files with 6 additions and 4 deletions
|
@ -19,8 +19,11 @@ linters-settings:
|
||||||
simplify: true
|
simplify: true
|
||||||
goimports:
|
goimports:
|
||||||
local-prefixes: github.com/drakkan/sftpgo
|
local-prefixes: github.com/drakkan/sftpgo
|
||||||
maligned:
|
#govet:
|
||||||
suggest-new: true
|
# report about shadowed variables
|
||||||
|
#check-shadowing: true
|
||||||
|
#enable:
|
||||||
|
# - fieldalignment
|
||||||
|
|
||||||
linters:
|
linters:
|
||||||
enable:
|
enable:
|
||||||
|
@ -34,7 +37,6 @@ linters:
|
||||||
- bodyclose
|
- bodyclose
|
||||||
- gocyclo
|
- gocyclo
|
||||||
- misspell
|
- misspell
|
||||||
- maligned
|
|
||||||
- whitespace
|
- whitespace
|
||||||
- dupl
|
- dupl
|
||||||
- rowserrcheck
|
- rowserrcheck
|
||||||
|
|
|
@ -4828,7 +4828,7 @@ func TestWebClientChangePubKeys(t *testing.T) {
|
||||||
checkResponseCode(t, http.StatusOK, rr)
|
checkResponseCode(t, http.StatusOK, rr)
|
||||||
assert.Contains(t, rr.Body.String(), "Your public keys has been successfully updated")
|
assert.Contains(t, rr.Body.String(), "Your public keys has been successfully updated")
|
||||||
|
|
||||||
user, _, err = httpdtest.GetUserByUsername(defaultUsername, http.StatusOK)
|
user, _, err = httpdtest.GetUserByUsername(user.Username, http.StatusOK)
|
||||||
assert.NoError(t, err)
|
assert.NoError(t, err)
|
||||||
assert.Len(t, user.PublicKeys, 1)
|
assert.Len(t, user.PublicKeys, 1)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue