dev: fix interface implement check for "SkipDirs" (#2078)

This commit is contained in:
subham sarkar 2021-06-26 03:34:04 +05:30 committed by GitHub
parent ad4f92788d
commit f08d330cbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ type SkipDirs struct {
skippedDirsCache map[string]bool
}
var _ Processor = SkipFiles{}
var _ Processor = (*SkipDirs)(nil)
const goFileSuffix = ".go"

View File

@ -11,7 +11,7 @@ type SkipFiles struct {
patterns []*regexp.Regexp
}
var _ Processor = SkipFiles{}
var _ Processor = (*SkipFiles)(nil)
func NewSkipFiles(patterns []string) (*SkipFiles, error) {
var patternsRe []*regexp.Regexp