IfNot only runs this executor if conditional is true
(conditional Conditional)
| 206 | |
| 207 | // IfNot only runs this executor if conditional is true |
| 208 | func (e Executor) IfNot(conditional Conditional) Executor { |
| 209 | return func(ctx context.Context) error { |
| 210 | if !conditional(ctx) { |
| 211 | return e(ctx) |
| 212 | } |
| 213 | return nil |
| 214 | } |
| 215 | } |
| 216 | |
| 217 | // IfBool only runs this executor if conditional is true |
| 218 | func (e Executor) IfBool(conditional bool) Executor { |
no outgoing calls
no test coverage detected