fixed: fix skip-needs issue

Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
yxxhero
2022-09-12 18:04:20 +08:00
parent f3984d5be5
commit bf323b4021
11 changed files with 26 additions and 26 deletions
+2 -2
View File
@@ -69,7 +69,7 @@ func (t *DiffImpl) Concurrency() int {
// IncludeNeeds returns the include needs
func (t *DiffImpl) IncludeNeeds() bool {
return t.DiffOptions.IncludeNeeds || t.DiffOptions.IncludeTransitiveNeeds
return t.DiffOptions.IncludeNeeds || t.IncludeTransitiveNeeds()
}
// IncludeTransitiveNeeds returns the include transitive needs
@@ -89,7 +89,7 @@ func (t *DiffImpl) SkipDeps() bool {
// SkipNeeds returns the skip needs
func (t *DiffImpl) SkipNeeds() bool {
if !t.DiffOptions.IncludeNeeds {
if !t.IncludeNeeds() {
return t.DiffOptions.SkipNeeds
}