packer-cn/helper/multistep/if.go

10 lines
142 B
Go

package multistep
// if returns step only if on is true.
func If(on bool, step Step) Step {
if on == false {
return nil
}
return step
}