Skip to content

Commit 00a1bf3

Browse files
committed
extract assignment outside loop
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
1 parent 927be97 commit 00a1bf3

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

go/mysql/replication/mysql56_gtid_set.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,9 +425,8 @@ func (set Mysql56GTIDSet) AddGTIDInPlace(gtid GTID) GTIDSet {
425425
// Can't be merged.
426426
newIntervals = append(newIntervals, iv)
427427
}
428-
429-
set[gtid56.Server] = newIntervals
430428
}
429+
set[gtid56.Server] = newIntervals
431430

432431
if !added {
433432
// There wasn't any place to insert the new GTID, so just append it

0 commit comments

Comments
 (0)