mirror of
https://github.com/go-delve/delve.git
synced 2025-10-27 20:23:41 +08:00
all: use "len == 0" rather than "len <= 0" when checking empty slice/string (#3439)
This commit is contained in:
@ -899,7 +899,7 @@ func removePCsBetween(pcs []uint64, start, end uint64) []uint64 {
|
||||
}
|
||||
|
||||
func setStepIntoBreakpoint(dbp *Target, curfn *Function, text []AsmInstruction, cond ast.Expr) error {
|
||||
if len(text) <= 0 {
|
||||
if len(text) == 0 {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user