hugolib: Simplify some code

This commit is contained in:
Cameron Moore
2018-08-28 15:51:44 -05:00
committed by Bjørn Erik Pedersen
parent 0665a3951b
commit e38e881248
4 changed files with 15 additions and 21 deletions

View File

@@ -70,7 +70,7 @@ func createSiteOutputFormats(allFormats output.Formats, cfg config.Provider) (ma
outputs := cfg.GetStringMap("outputs")
if outputs == nil || len(outputs) == 0 {
if len(outputs) == 0 {
return outFormats, nil
}