Skip to content

Commit 9189e6f

Browse files
author
anton.voskresensky
committed
fix error
1 parent 282bb07 commit 9189e6f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

pkg/utils/indices.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,12 @@ func IsSystem(indexConfig config.IndexConfig, nameOrPattern string) bool {
3434
}
3535

3636
func MatchesIndex(indexName string, indexConfig config.IndexConfig) bool {
37-
if !indexConfig.System && ShouldSkipIndex(indexName) {
37+
isSystemConfig := IsSystem(indexConfig, indexConfig.Value)
38+
isSystemIndex := IsSystem(indexConfig, indexName)
39+
if !isSystemConfig && ShouldSkipIndex(indexName) {
3840
return false
3941
}
4042

41-
isSystemIndex := IsSystem(indexConfig, indexName)
42-
isSystemConfig := IsSystem(indexConfig, indexConfig.Value)
43-
4443
if isSystemConfig && !isSystemIndex {
4544
return false
4645
}

0 commit comments

Comments
 (0)