Skip to content

Commit a05e395

Browse files
dveedenlance6716
andauthored
Update server/command.go
Co-authored-by: lance6716 <[email protected]>
1 parent 5adab81 commit a05e395

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

server/command.go

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -204,15 +204,14 @@ func (h EmptyHandler) HandleQuery(query string) (*Result, error) {
204204
}, false)
205205
if err != nil {
206206
return nil, err
207-
} else {
208-
return &mysql.Result{
209-
Status: 0,
210-
Warnings: 0,
211-
InsertId: 0,
212-
AffectedRows: 0,
213-
Resultset: r,
214-
}, nil
215207
}
208+
return &mysql.Result{
209+
Status: 0,
210+
Warnings: 0,
211+
InsertId: 0,
212+
AffectedRows: 0,
213+
Resultset: r,
214+
}, nil
216215
}
217216

218217
return nil, fmt.Errorf("not supported now")

0 commit comments

Comments
 (0)