diff --git a/pkg/terminal/command.go b/pkg/terminal/command.go index b1ad7281c620c8d605c4b7b2a446198aed220526..45c8fd94b106d4e1d43e845726a25420b09ad201 100644 --- a/pkg/terminal/command.go +++ b/pkg/terminal/command.go @@ -2057,7 +2057,7 @@ func checkpoints(t *Term, ctx callContext, args string) error { } func clearCheckpoint(t *Term, ctx callContext, args string) error { - if len(args) < 0 { + if len(args) == 0 { return errors.New("not enough arguments to clear-checkpoint") } if args[0] != 'c' { diff --git a/service/debugger/locations.go b/service/debugger/locations.go index d1329139849f28420ff3603244cb2d4833d5a401..e70f92cca95f9535a1311aae2b02a71798456498 100644 --- a/service/debugger/locations.go +++ b/service/debugger/locations.go @@ -72,7 +72,7 @@ func parseLocationSpec(locStr string) (LocationSpec, error) { case '/': if rest[len(rest)-1] == '/' { rx, rest := readRegex(rest[1:]) - if len(rest) < 0 { + if len(rest) == 0 { return nil, malformed("non-terminated regular expression") } if len(rest) > 1 {