Skip to content

Commit 4bbb553

Browse files
committed
lint - fix all nakedret
1 parent f03d0f5 commit 4bbb553

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

canal/sync.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ func parseStmt(stmt ast.StmtNode) (ns []*node) {
227227
}
228228
ns = []*node{n}
229229
}
230-
return
230+
return ns
231231
}
232232

233233
func (c *Canal) updateTable(db, table string) (err error) {

mysql/field.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ func (f *Field) Parse(p FieldData) (err error) {
130130
f.DefaultValue = p[pos:(pos + int(f.DefaultValueLength))]
131131
}
132132

133-
return
133+
return nil
134134
}
135135

136136
func (p FieldData) Parse() (f *Field, err error) {

replication/row_event.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1159,7 +1159,8 @@ func (e *RowsEvent) decodeValue(data []byte, tp byte, meta uint16) (v interface{
11591159
default:
11601160
err = fmt.Errorf("unsupport type %d in binlog and don't know how to handle", tp)
11611161
}
1162-
return
1162+
1163+
return v, n, err
11631164
}
11641165

11651166
func decodeString(data []byte, length int) (v string, n int) {

0 commit comments

Comments
 (0)