mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-16 20:53:59 +02:00
hugolib: Simplify some code
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
0665a3951b
commit
e38e881248
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user