Skip to content

Commit

Permalink
improve code
Browse files Browse the repository at this point in the history
  • Loading branch information
foreyes committed Sep 18, 2019
1 parent 234d488 commit a27600a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion executor/executor.go
Expand Up @@ -1385,7 +1385,7 @@ func extractStmtHintsFromStmtNode(stmtNode ast.StmtNode) []*ast.TableOptimizerHi
}

func handleStmtHints(hints []*ast.TableOptimizerHint) (stmtHints stmtctx.StmtHints, warns []error) {
if hints == nil {
if len(hints) == 0 {
return
}
var memoryQuotaHint, useToJAHint *ast.TableOptimizerHint
Expand Down

0 comments on commit a27600a

Please sign in to comment.