summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/spf13/afero/match.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/spf13/afero/match.go')
-rw-r--r--vendor/github.com/spf13/afero/match.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/github.com/spf13/afero/match.go b/vendor/github.com/spf13/afero/match.go
index c18a87fb..7db4b7de 100644
--- a/vendor/github.com/spf13/afero/match.go
+++ b/vendor/github.com/spf13/afero/match.go
@@ -106,5 +106,5 @@ func glob(fs Fs, dir, pattern string, matches []string) (m []string, e error) {
// recognized by Match.
func hasMeta(path string) bool {
// TODO(niemeyer): Should other magic characters be added here?
- return strings.IndexAny(path, "*?[") >= 0
+ return strings.ContainsAny(path, "*?[")
}