Check if command is nil before optimizing
MAINTAINER returns nil since it's deprecated, so we should make sure we don't add to the list of commands to optimize.
This commit is contained in:
parent
e7d1123073
commit
5df363a0f6
|
|
@ -155,6 +155,9 @@ func (s *stageBuilder) build() error {
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if command == nil {
|
||||
continue
|
||||
}
|
||||
cmds = append(cmds, command)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue