Fix double close error with log rotation (#5960)

This commit is contained in:
Daniel Nelson
2019-06-05 13:55:21 -07:00
committed by GitHub
parent 7be74816a2
commit 0fb9040a64

View File

@@ -99,9 +99,6 @@ func (w *FileWriter) Close() (err error) {
return err
}
if err = w.current.Close(); err != nil {
return err
}
w.current = nil
return nil
}