mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-11 20:03:58 +02:00
Gofmt
Command: `gofmt -l -s -w .`
This commit is contained in:
@@ -33,10 +33,10 @@ func AbsURL(absURL string) (trs []link, err error) {
|
||||
}
|
||||
|
||||
func guardReplace(content, guard, match, replace []byte) []byte {
|
||||
if !bytes.Contains(content, guard) {
|
||||
content = bytes.Replace(content, match, replace, -1)
|
||||
}
|
||||
return content
|
||||
if !bytes.Contains(content, guard) {
|
||||
content = bytes.Replace(content, match, replace, -1)
|
||||
}
|
||||
return content
|
||||
}
|
||||
|
||||
type elattr struct {
|
||||
|
Reference in New Issue
Block a user