aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorFuwn <[email protected]>2021-09-02 02:07:45 +0000
committerFuwn <[email protected]>2021-09-02 02:07:45 +0000
commit3b53bdf685a67ee369daf079cb172aada8fad4c3 (patch)
treeef8dec5b2d9ce7f647b24d43389180f413d04fb2 /main.go
parentfix(docker): .space to .me (diff)
downloadcapybara-3b53bdf685a67ee369daf079cb172aada8fad4c3.tar.xz
capybara-3b53bdf685a67ee369daf079cb172aada8fad4c3.zip
fix(main): remove redundant type conversion
Diffstat (limited to 'main.go')
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index 45a12d7..2e6c5be 100644
--- a/main.go
+++ b/main.go
@@ -102,7 +102,7 @@ var gemtextPage = template.Must(template.
"url": func(ctx *GemtextContext, s string) template.URL {
u, err := url.Parse(s)
if err != nil {
- return template.URL("error")
+ return "error"
}
u = ctx.URL.ResolveReference(u)