diff --git a/drivel.go b/drivel.go index 3b0314f..910377c 100644 --- a/drivel.go +++ b/drivel.go @@ -839,8 +839,8 @@ func setFilters(appDir string) { set := makeHashset() if err == nil { for _, id := range strings.Split(s, "\n") { - if strings.TrimSpace(id) != "" { - set.add(id) + if trimmed := strings.TrimSpace(id); trimmed != "" { + set.add(trimmed) } } }