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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 3 deletions

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
}