Skip to content
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.

Commit

Permalink
avoid lint
Browse files Browse the repository at this point in the history
  • Loading branch information
glorv committed May 11, 2021
1 parent 15cc9f2 commit dac941a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions relay/meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ func (lm *LocalMeta) AddDir(serverUUID string, newPos *mysql.Position, newGTID g
}

// update UUID index file
// nolint:gocritic
uuids := append(lm.uuids, newUUID)
err = lm.updateIndexFile(uuids)
if err != nil {
Expand Down
2 changes: 2 additions & 0 deletions syncer/syncer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -694,6 +694,7 @@ func (s *testSyncerSuite) TestColumnMapping(c *C) {
mapping, err := cm.NewMapping(false, rules)
c.Assert(err, IsNil)

// nolint:gocritic
allEvents := append(createEvents, dmlEvents...)
allEvents = append(allEvents, dropEvents...)
dmlIndex := 0
Expand Down Expand Up @@ -1314,6 +1315,7 @@ func (s *testSyncerSuite) TestExitSafeModeByConfig(c *C) {
}
generatedEvents2 := s.generateEvents(events2, c)

// nolint:gocritic
generatedEvents := append(generatedEvents1, generatedEvents2...)

mockStreamerProducer := &MockStreamProducer{generatedEvents}
Expand Down

0 comments on commit dac941a

Please sign in to comment.