aboutsummaryrefslogtreecommitdiffhomepage
path: root/replacer.go
diff options
context:
space:
mode:
authorJacob Gadikian <[email protected]>2023-08-08 03:40:31 +0800
committerGitHub <[email protected]>2023-08-07 19:40:31 +0000
commitb32f265ecad60404c3818cc9d42e367a8e4eb7d4 (patch)
tree16d79c3ad7ddf0cc6f7915d1e47bdd6d269bf8d5 /replacer.go
parent431adc09805972196314b2b188904942cbe5dfee (diff)
downloadcaddy-b32f265ecad60404c3818cc9d42e367a8e4eb7d4.tar.gz
caddy-b32f265ecad60404c3818cc9d42e367a8e4eb7d4.zip
ci: Use gofumpt to format code (#5707)
Diffstat (limited to 'replacer.go')
-rw-r--r--replacer.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/replacer.go b/replacer.go
index 16d50ac2a..817bcfe34 100644
--- a/replacer.go
+++ b/replacer.go
@@ -131,7 +131,8 @@ func (r *Replacer) ReplaceFunc(input string, f ReplacementFunc) (string, error)
func (r *Replacer) replace(input, empty string,
treatUnknownAsEmpty, errOnEmpty, errOnUnknown bool,
- f ReplacementFunc) (string, error) {
+ f ReplacementFunc,
+) (string, error) {
if !strings.Contains(input, string(phOpen)) {
return input, nil
}