Remove useless compileRegex function
Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
parent
3a4aba93e5
commit
40b0ba999a
2 changed files with 2 additions and 13 deletions
|
@ -25,13 +25,13 @@ type Parser struct {
|
|||
func NewParser(includeRegex string, excludeRegex string) (*Parser, error) {
|
||||
|
||||
log.Debugf("compiling include name regex")
|
||||
includeRegexCompiled, err := compileRegex(includeRegex)
|
||||
includeRegexCompiled, err := regexp.Compile(includeRegex)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
log.Debugf("compiling exclude name regex")
|
||||
excludeRegexCompiled, err := compileRegex(excludeRegex)
|
||||
excludeRegexCompiled, err := regexp.Compile(excludeRegex)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
Reference in a new issue