(handlers *context.Handlers)
| 86 | } |
| 87 | |
| 88 | func (e ExecutionOptions) apply(handlers *context.Handlers) bool { |
| 89 | if !e.Force { |
| 90 | return false |
| 91 | } |
| 92 | |
| 93 | tmp := *handlers |
| 94 | |
| 95 | for i, h := range tmp { |
| 96 | if h == nil { |
| 97 | if len(tmp) == 1 { |
| 98 | return false |
| 99 | } |
| 100 | continue |
| 101 | } |
| 102 | (*handlers)[i] = e.buildHandler(h) |
| 103 | } |
| 104 | |
| 105 | return true |
| 106 | } |
no test coverage detected