remove false ifdef

The entire section falls under the else path of #ifdef _WIN32. Checking
for it makes no sense. Probably some refactoring mistake.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2020-03-17 20:37:51 -07:00
parent 1ec283d213
commit ba3ff10ccd
No known key found for this signature in database
GPG Key ID: 36D31CFA845F0E3B

View File

@ -270,12 +270,7 @@ FileOutputStream::Commit()
#endif
if (!Close()) {
#ifdef _WIN32
throw FormatLastError("Failed to commit %s",
path.ToUTF8().c_str());
#else
throw FormatErrno("Failed to commit %s", path.c_str());
#endif
}
}