From c48f817844d4473d0e9a79cdebf3120a1111f8ec Mon Sep 17 00:00:00 2001 From: Taylor Blau Date: Mon, 26 Feb 2018 15:58:13 -0800 Subject: [PATCH] filepathfilter: rename 'matched' to 'included' --- filepathfilter/filepathfilter.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/filepathfilter/filepathfilter.go b/filepathfilter/filepathfilter.go index 3712689d..3f2fb538 100644 --- a/filepathfilter/filepathfilter.go +++ b/filepathfilter/filepathfilter.go @@ -53,15 +53,15 @@ func (f *Filter) Allows(filename string) bool { return true } - var matched bool + var included bool for _, inc := range f.include { - if matched = inc.Match(filename); matched { + if included = inc.Match(filename); included { break } } tracerx.Printf("filepathfilter: rejecting %q via %v", filename, f.include) - if !matched && len(f.include) > 0 { + if !included && len(f.include) > 0 { return false }