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:
parent
1ec283d213
commit
ba3ff10ccd
@ -270,12 +270,7 @@ FileOutputStream::Commit()
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (!Close()) {
|
if (!Close()) {
|
||||||
#ifdef _WIN32
|
|
||||||
throw FormatLastError("Failed to commit %s",
|
|
||||||
path.ToUTF8().c_str());
|
|
||||||
#else
|
|
||||||
throw FormatErrno("Failed to commit %s", path.c_str());
|
throw FormatErrno("Failed to commit %s", path.c_str());
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user