Skip to content

Commit

Permalink
expression: remove useless true statement (#14059)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rustin170506 authored and sre-bot committed Dec 14, 2019
1 parent 3ee6bc8 commit 4410288
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion expression/expr_to_pb.go
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ func (pc PbConverter) canFuncBePushed(sf *ScalarFunction) bool {
// date functions.
ast.DateFormat:
_, disallowPushdown := DefaultExprPushdownBlacklist.Load().(map[string]struct{})[sf.FuncName.L]
return true && !disallowPushdown
return !disallowPushdown
}
return false
}
Expand Down

0 comments on commit 4410288

Please sign in to comment.