diff options
author | Caleb Spare <cespare@gmail.com> | 2013-11-24 13:48:57 -0800 |
---|---|---|
committer | spf13 <steve.francia@gmail.com> | 2013-12-16 17:40:10 -0500 |
commit | 6da23f7449366e7699e406adb3334e71ffd1e70e (patch) | |
tree | bf529be0961c8dd20fee68ed1ba53ec714c8b86c /transform | |
parent | 1abc2f0b8663a3082c509157952bb756bcd38f92 (diff) |
Gofmt
Command: `gofmt -l -s -w .`
Diffstat (limited to 'transform')
-rw-r--r-- | transform/absurl.go | 8 |
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 { |