Skip to content

Commit

Permalink
fix golangci-lint check issues
Browse files Browse the repository at this point in the history
Signed-off-by: axfor <[email protected]>
  • Loading branch information
axfor committed May 9, 2023
1 parent 5b0d29f commit 4089bf1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions canal/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,6 @@ func (c *Canal) handleDDLEvent(ev *replication.BinlogEvent, e *replication.Query

func (c *Canal) handleCreateUserEvent(ev *replication.BinlogEvent, e *replication.QueryEvent,
stmt *ast.CreateUserStmt, pos mysql.Position, savePos, force *bool) error {

users := parseCreateUserStmt(stmt)
for _, user := range users {
*savePos = true
Expand All @@ -650,7 +649,6 @@ func (c *Canal) handleCreateUserEvent(ev *replication.BinlogEvent, e *replicatio
return errors.Trace(err)
}
}

return nil
}

Expand Down

0 comments on commit 4089bf1

Please sign in to comment.