Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaleb Spare <cespare@gmail.com>2013-11-25 01:48:57 +0400
committerspf13 <steve.francia@gmail.com>2013-12-17 02:40:10 +0400
commit6da23f7449366e7699e406adb3334e71ffd1e70e (patch)
treebf529be0961c8dd20fee68ed1ba53ec714c8b86c /transform
parent1abc2f0b8663a3082c509157952bb756bcd38f92 (diff)
Gofmt
Command: `gofmt -l -s -w .`
Diffstat (limited to 'transform')
-rw-r--r--transform/absurl.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/transform/absurl.go b/transform/absurl.go
index 8bdd36515..9838cbe51 100644
--- a/transform/absurl.go
+++ b/transform/absurl.go
@@ -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 {