Skip to content

Commit 3d4253b

Browse files
committed
fix: fix conditional logic in Source function
1 parent 2f3316a commit 3d4253b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

commands/source.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
)
1010

1111
func Source(c *cli.Context) {
12-
if c.Args().Get(0) != "list" || (c.String("name") == "") || (c.String("url") == "") {
12+
if c.Args().Get(0) == "list" || (c.String("name") == "") || (c.String("url") == "") {
1313
config, err := module.GetSource()
1414
if err != nil {
1515
log.Fatal(err)

0 commit comments

Comments
 (0)