fix linting error

This commit is contained in:
2025-01-21 18:43:56 +01:00
parent f6e3075ea8
commit e29e72b7d2

View File

@@ -345,7 +345,6 @@ func (conf *Config) PreparePattern(patterns []*Pattern) error {
for _, pattern := range patterns {
matches := flagre.FindAllStringSubmatch(pattern.Pattern, -1)
if matches != nil {
// we have a regex with flags
for _, match := range matches {
pattern.Pattern = match[1] // the inner part is our actual pattern
@@ -360,7 +359,6 @@ func (conf *Config) PreparePattern(patterns []*Pattern) error {
}
}
}
}
PatternRe, err := regexp.Compile(pattern.Pattern)
if err != nil {