summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manager.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/manager.go b/manager.go
index 10de4ef..470fbf3 100644
--- a/manager.go
+++ b/manager.go
@@ -84,13 +84,13 @@ func (f *StringFilter) Filter(w *Work) *Work {
}
changed := false
- for k, v := range jm {
- ff, ok := f.FilterFuncMap[k]
+ for field, ff := range f.FilterFuncMap {
+ str, ok := jm[field]
if !ok {
continue
}
- jm[k] = ff(v)
+ jm[field] = ff(str)
changed = true
}
if changed {