mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-05 00:15:44 +00:00
pkg/errorhandling: remove deadcode
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
parent
4d5e0a647c
commit
1a0917de35
1 changed files with 0 additions and 8 deletions
|
|
@ -59,14 +59,6 @@ func StringsToErrors(strErrs []string) []error {
|
||||||
return errs
|
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
|
// CloseQuiet closes a file and logs any error. Should only be used within
|
||||||
// a defer.
|
// a defer.
|
||||||
func CloseQuiet(f *os.File) {
|
func CloseQuiet(f *os.File) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue