Command: `gofmt -l -s -w .`
This commit is contained in:
Caleb Spare
2013-11-24 13:48:57 -08:00
committed by spf13
parent 1abc2f0b86
commit 6da23f7449
8 changed files with 30 additions and 32 deletions

View File

@@ -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 {