2020-11-17 16:31:03 -08:00

10 lines
150 B
Go

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