set inline to an empty array, rather than nil

This commit is contained in:
Megan Marsh
2018-05-07 15:10:09 -07:00
parent 926327beba
commit c7c66bedcb
+1 -1
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 {