if err != nil {
jww.FATAL.Printf("Fail to replace short code tokens in %s:\n%s", p.BaseFileName(), err.Error())
return HandledResult{err: err}
- } else {
- tmpContent = tmpContentWithTokensReplaced
}
+ tmpContent = tmpContentWithTokensReplaced
}
p.Content = helpers.BytesToHTML(tmpContent)
if err != nil {
jww.FATAL.Printf("Fail to replace short code tokens in %s:\n%s", p.BaseFileName(), err.Error())
return HandledResult{err: err}
- } else {
- tmpContent = tmpContentWithTokensReplaced
}
+ tmpContent = tmpContentWithTokensReplaced
}
p.Content = helpers.BytesToHTML(tmpContent)