Skip to content

Commit 0027453

Browse files
robbinhanrobbin
and
robbin
authored
go-canal: fix len(*ignoreTables) > 0 (go-mysql-org#494)
Co-authored-by: robbin <[email protected]>
1 parent 803944a commit 0027453

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/go-canal/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func main() {
5656
os.Exit(1)
5757
}
5858

59-
if len(*ignoreTables) == 0 {
59+
if len(*ignoreTables) > 0 {
6060
subs := strings.Split(*ignoreTables, ",")
6161
for _, sub := range subs {
6262
if seps := strings.Split(sub, "."); len(seps) == 2 {

0 commit comments

Comments
 (0)