forked from TrueCloudLab/restic
Remove unused public method ui.linesWriter.Flush
This commit is contained in:
parent
4ba237bb93
commit
7c0b6a82db
1 changed files with 1 additions and 5 deletions
|
@ -74,13 +74,9 @@ func (w *lineWriter) Write(data []byte) (n int, err error) {
|
|||
return n, err
|
||||
}
|
||||
|
||||
func (w *lineWriter) Flush() error {
|
||||
func (w *lineWriter) Close() error {
|
||||
if w.buf.Len() > 0 {
|
||||
w.print(string(append(w.buf.Bytes(), '\n')))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (w *lineWriter) Close() error {
|
||||
return w.Flush()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue