Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

Commit 22125cf

Browse files
Iskander (Alex) Sharipovcarolynvs
Iskander (Alex) Sharipov
authored andcommitted
cmd/dep: replace len(x)<=0 with len(x)==0 (#2031)
Length never returns negative values. Signed-off-by: Iskander Sharipov <[email protected]>
1 parent 3c04147 commit 22125cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/dep/init.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func (cmd *initCommand) Run(ctx *dep.Ctx, args []string) error {
7474
}
7575

7676
var root string
77-
if len(args) <= 0 {
77+
if len(args) == 0 {
7878
root = ctx.WorkingDir
7979
} else {
8080
root = args[0]

0 commit comments

Comments
 (0)