commands, hugolib, source, target, tpl: Get rid of some fmt statements

This commit is contained in:
bogem 2016-11-18 22:38:41 +01:00 committed by Bjørn Erik Pedersen
parent 120f6b0cf2
commit 1f130fd692
4 changed files with 6 additions and 12 deletions

View file

@ -97,7 +97,7 @@ func convertContents(mark rune) (err error) {
}
if site.Source == nil {
panic(fmt.Sprintf("site.Source not set"))
panic("site.Source not set")
}
if len(site.Source.Files()) < 1 {
return fmt.Errorf("No source files found")