k3s/vendor/github.com/rootless-containers/rootlesskit/pkg/common/common.go

13 lines
184 B
Go
Raw Normal View History

2019-04-09 17:34:40 +00:00
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
}
}