From 5900b725e631468d9dc679671750027a09986ed0 Mon Sep 17 00:00:00 2001 From: Ingo Oppermann Date: Mon, 4 Jul 2022 20:23:36 +0200 Subject: [PATCH] Fix linter warning --- restream/app/process.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/restream/app/process.go b/restream/app/process.go index a84da11c..a726c51f 100644 --- a/restream/app/process.go +++ b/restream/app/process.go @@ -86,9 +86,8 @@ func replace(what, placeholder, value string) string { return what } - innerRe := re.Copy() what = re.ReplaceAllStringFunc(what, func(match string) string { - matches := innerRe.FindStringSubmatch(match) + matches := re.FindStringSubmatch(match) var v string if matches[2] != "" {