Removed PassAll from ChangeFilter and fixed sort not being descending order.
the build was successful

This commit is contained in:
2019-06-16 11:46:23 +02:00
parent f6ad0602c2
commit e194b6536e
3 changed files with 2 additions and 8 deletions
-6
View File
@@ -104,10 +104,6 @@ func (change *Change) Objects() []interface{} {
}
func (change *Change) PassesFilter(filter ChangeFilter) bool {
if filter.PassAll {
return true
}
if filter.Author != nil && change.Author != *filter.Author {
return false
}
@@ -172,6 +168,4 @@ type ChangeFilter struct {
EarliestDate *time.Time
Author *string
Limit *int
PassAll bool // DO NOT EXPOSE
}