mirror of
https://github.com/argoproj/argo-cd
synced 2026-04-21 17:07:16 +00:00
11 lines
229 B
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()
|
|
}
|