common: fs: file: Remove [[nodiscard]] attribute from Flush
Similarly, Flush() is typically called to attempt to flush a file into the disk. In the one case where this is used, we do not care whether the flush has succeeded or not, making [[nodiscard]] unnecessary.
This commit is contained in:
parent
f81ef990ac
commit
e12844c5a3
2 changed files with 3 additions and 3 deletions
|
@ -186,7 +186,7 @@ void FileBackend::Write(const Entry& entry) {
|
|||
|
||||
bytes_written += file->WriteString(FormatLogMessage(entry).append(1, '\n'));
|
||||
if (entry.log_level >= Level::Error) {
|
||||
void(file->Flush());
|
||||
file->Flush();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue