Return nip.Rule struct from Evaluate function in itemfilter (#14)
* Return Rule from Evaluate in itemfilter * Return Rule as the first argument
This commit is contained in:
committed by
GitHub
parent
d5d0f0a51f
commit
58b995842d
@@ -55,7 +55,8 @@ func (w *Watcher) Start(ctx context.Context) error {
|
||||
|
||||
d := w.gr.GetData()
|
||||
for _, i := range d.Items.ByLocation(item.LocationGround) {
|
||||
if !itemfilter.Evaluate(i, w.rules) {
|
||||
_, match := itemfilter.Evaluate(i, w.rules)
|
||||
if !match {
|
||||
continue
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user