mirror of
https://tildegit.org/solderpunk/molly-brown
synced 2024-05-24 05:36:03 +02:00
gofmt.
This commit is contained in:
parent
f4f14320df
commit
d87ecfd20f
|
@ -249,7 +249,7 @@ func handleRedirectsInner(URL *url.URL, redirects map[string]string, status int,
|
||||||
for src, dst := range redirects {
|
for src, dst := range redirects {
|
||||||
compiled, err := regexp.Compile(src)
|
compiled, err := regexp.Compile(src)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if compiled.MatchString(URL.Path) {
|
if compiled.MatchString(URL.Path) {
|
||||||
URL.Path = compiled.ReplaceAllString(URL.Path, dst)
|
URL.Path = compiled.ReplaceAllString(URL.Path, dst)
|
||||||
|
|
Loading…
Reference in New Issue