chore: golangci-lint update.

This commit is contained in:
Xavier Michelon
2024-07-11 11:14:23 +02:00
parent 5d3f084a2b
commit fc64dbec59
33 changed files with 157 additions and 158 deletions

View File

@ -27,7 +27,7 @@ import (
func TestUser_New(t *testing.T) {
// Replace the token generator with a dummy one.
vault.RandomToken = func(size int) ([]byte, error) {
vault.RandomToken = func(_ int) ([]byte, error) {
return []byte("token"), nil
}
@ -243,7 +243,7 @@ func TestUser_ForEach(t *testing.T) {
func TestUser_ShouldResync(t *testing.T) {
// Replace the token generator with a dummy one.
vault.RandomToken = func(size int) ([]byte, error) {
vault.RandomToken = func(_ int) ([]byte, error) {
return []byte("token"), nil
}