Remove cleanup implementation from runner
This commit is contained in:
parent
872812eaa4
commit
24d8025827
@ -1,12 +0,0 @@
|
||||
package runner
|
||||
|
||||
// cleanup stacks cleanup functions to call when Close is called.
|
||||
func (r *Runner) cleanup(f func()) {
|
||||
oldF := r.cleanupFunc
|
||||
r.cleanupFunc = func() {
|
||||
defer f()
|
||||
if oldF != nil {
|
||||
oldF()
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user