Skip to content

Commit 4a52850

Browse files
committed
Run golangci-lint
1 parent 8c72c7d commit 4a52850

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

server/auth.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ func (c *Conn) compareCacheSha2PasswordAuthData(clientAuthData []byte) error {
151151
// 'fast' auth: write "More data" packet (first byte == 0x01) with the second byte = 0x03
152152
return c.writeAuthMoreDataFastAuth()
153153
}
154-
155154
}
156155
// cache miss or validation failed, do full auth
157156
if err := c.writeAuthMoreDataFullAuth(); err != nil {

server/authentication_handler_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"testing"
88
"time"
99

10-
_ "github.com/go-sql-driver/mysql"
1110
"github.com/go-mysql-org/go-mysql/mysql"
11+
_ "github.com/go-sql-driver/mysql"
1212
"github.com/pingcap/errors"
1313
"github.com/stretchr/testify/require"
1414
)
@@ -64,7 +64,7 @@ func TestOnAuthSuccessCalled(t *testing.T) {
6464
func TestOnAuthSuccessCanReject(t *testing.T) {
6565
handler := &hookTrackingAuthenticationHandler{
6666
InMemoryAuthenticationHandler: NewInMemoryAuthenticationHandler(mysql.AUTH_NATIVE_PASSWORD),
67-
rejectOnSuccess: true,
67+
rejectOnSuccess: true,
6868
}
6969
require.NoError(t, handler.AddUser("testuser", "testpass"))
7070

0 commit comments

Comments
 (0)