k3s/vendor/github.com/rootless-containers/rootlesskit/pkg/common/common.go
Darren Shepherd 6f01e13fc4 Update vendor
2019-04-09 10:35:00 -07:00

13 lines
184 B
Go

package common
func Seq(fns []func() error) func() error {
return func() error {
for _, fn := range fns {
if err := fn(); err != nil {
return err
}
}
return nil
}
}