Skip to content

Commit 6521c47

Browse files
committed
fix lint
1 parent 3f4374b commit 6521c47

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

pkg/client/helper.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"strings"
77
)
88

9-
// Helper for identifiers (tables, columns, databases)
9+
// Helper for identifiers (tables, columns, databases).
1010
var validIdent = regexp.MustCompile(`^[a-zA-Z0-9_]+$`)
1111

1212
func escapeMySQLIdent(ident string) (string, error) {
@@ -20,7 +20,7 @@ func escapeMySQLIdent(ident string) (string, error) {
2020
return strings.Join(parts, "."), nil
2121
}
2222

23-
// Helper for user/host
23+
// Helper for user/host.
2424
var validUserHost = regexp.MustCompile(`^[a-zA-Z0-9_%\\.\\-]+$`)
2525

2626
func escapeMySQLUserHost(ident string) (string, error) {

pkg/connector/user.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,6 @@ func (s *userSyncer) Delete(ctx context.Context, resourceId *v2.ResourceId) (ann
200200
if resourceId.ResourceType != resourceTypeUser.Id {
201201
return nil, fmt.Errorf("baton-mysql: non-user resource passed to user delete")
202202
}
203-
fmt.Println("resourceId", resourceId)
204203
userID := strings.TrimSpace(strings.Split(resourceId.Resource, ":")[1])
205204
parts := strings.Split(userID, "@")
206205
if len(parts) != 2 {

0 commit comments

Comments
 (0)