Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominik Przybyl committed Nov 22, 2024
1 parent 97410cb commit db1f2ba
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pkg/instance_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@ func NewInstanceManager(aem *AEM) *InstanceManager {
result.FilterIDs = cv.GetStringSlice("instance.filter.id")
result.FilterAuthors = cv.GetBool("instance.filter.authors")
result.FilterPublishes = cv.GetBool("instance.filter.publishes")
if !result.FilterAuthors && !result.FilterPublishes {
result.FilterAuthors = true
result.FilterPublishes = true
}
result.ProcessingMode = cv.GetString("instance.processing_mode")

result.LocalOpts = NewLocalOpts(result)
Expand Down Expand Up @@ -180,7 +176,7 @@ func (im *InstanceManager) filter(instances []Instance) []Instance {
}
} else {
for _, i := range instances {
if im.FilterAuthors && i.IsAuthor() || im.FilterPublishes && i.IsPublish() || i.IsAdHoc() {
if im.FilterAuthors == im.FilterPublishes || im.FilterAuthors && i.IsAuthor() || im.FilterPublishes && i.IsPublish() {
result = append(result, i)
}
}
Expand Down

0 comments on commit db1f2ba

Please sign in to comment.