set inline to an empty array, rather than nil

This commit is contained in:
Megan Marsh 2018-02-28 09:45:29 -08:00
parent 926327beba
commit c7c66bedcb
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ func Validate(config *Config) error {
// Clean up input
if config.Inline != nil && len(config.Inline) == 0 {
config.Inline = nil
config.Inline = make([]string, 0)
}
if config.Scripts == nil {