mirror of
https://github.com/containers/podman.git
synced 2025-10-17 19:24:04 +08:00
pkg/errorhandling: remove deadcode
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
@ -59,14 +59,6 @@ func StringsToErrors(strErrs []string) []error {
|
||||
return errs
|
||||
}
|
||||
|
||||
// SyncQuiet syncs a file and logs any error. Should only be used within
|
||||
// a defer.
|
||||
func SyncQuiet(f *os.File) {
|
||||
if err := f.Sync(); err != nil {
|
||||
logrus.Errorf("Unable to sync file %s: %q", f.Name(), err)
|
||||
}
|
||||
}
|
||||
|
||||
// CloseQuiet closes a file and logs any error. Should only be used within
|
||||
// a defer.
|
||||
func CloseQuiet(f *os.File) {
|
||||
|
Reference in New Issue
Block a user