forked from Ivasoft/traefik
Vendor main dependencies.
This commit is contained in:
12
vendor/github.com/mesosphere/mesos-dns/errorutil/errorutil.go
generated
vendored
Normal file
12
vendor/github.com/mesosphere/mesos-dns/errorutil/errorutil.go
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
package errorutil
|
||||
|
||||
// ErrorFunction A function definition that returns an error
|
||||
// to be passed to the Ignore or Panic error handler
|
||||
type ErrorFunction func() error
|
||||
|
||||
// Ignore Calls an ErrorFunction, and ignores the result.
|
||||
// This allows us to be more explicit when there is no error
|
||||
// handling to be done, for example in defers
|
||||
func Ignore(f ErrorFunction) {
|
||||
_ = f()
|
||||
}
|
||||
Reference in New Issue
Block a user