argo-cd/util/util.go

11 lines
229 B
Go

package util
type Closer interface {
Close() error
}
// Close is a convenience function to close a object that has a Close() method, ignoring any errors
// Used to satisfy errcheck lint
func Close(c Closer) {
_ = c.Close()
}