mirror of
https://codeberg.org/scip/tablizer.git
synced 2025-12-17 04:30:56 +01:00
fix linting error
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user