mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-14 20:33:59 +02:00
all: Apply staticcheck recommendations
This commit is contained in:
@@ -142,7 +142,7 @@ func MakePermalink(host, plink string) *url.URL {
|
||||
}
|
||||
|
||||
if p.Host != "" {
|
||||
panic(fmt.Errorf("Can't make permalink from absolute link %q", plink))
|
||||
panic(fmt.Errorf("can't make permalink from absolute link %q", plink))
|
||||
}
|
||||
|
||||
base.Path = path.Join(base.Path, p.Path)
|
||||
|
Reference in New Issue
Block a user