From ccdff596833d924087a71b8f6b0b2185fcf13a0c Mon Sep 17 00:00:00 2001 From: iseki Date: Thu, 26 Sep 2024 21:03:22 +0800 Subject: [PATCH] fix(luarocks): or, instead of and --- module/luarocks/parser.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/luarocks/parser.go b/module/luarocks/parser.go index e477e8d2..25cce472 100644 --- a/module/luarocks/parser.go +++ b/module/luarocks/parser.go @@ -231,7 +231,7 @@ func (Inspector) InspectProject(ctx context.Context) error { return fmt.Errorf("parse: %w", e) } var deps, testDeps = analyze(ctx, tree) - if len(deps) != 0 && len(testDeps) == 0 { + if len(deps) != 0 || len(testDeps) == 0 { return nil } var module = model.Module{