all: Even more boring linter fixes (#5501)

This commit is contained in:
Jakob Borg
2019-02-02 11:45:17 +01:00
committed by GitHub
parent df5c1eaf01
commit 0b2cabbc31
28 changed files with 131 additions and 104 deletions

View File

@@ -81,7 +81,7 @@ func (w *AtomicWriter) Close() error {
}
// Try to not leave temp file around, but ignore error.
defer w.fs.Remove(w.next.Name())
defer func() { _ = w.fs.Remove(w.next.Name()) }()
if err := w.next.Sync(); err != nil {
w.err = err
@@ -110,7 +110,7 @@ func (w *AtomicWriter) Close() error {
// fsync the directory too
if fd, err := w.fs.Open(filepath.Dir(w.next.Name())); err == nil {
fd.Sync()
_ = fd.Sync()
fd.Close()
}