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: 's avatarRosen Penev <rosenp@gmail.com>
parent 1ec283d2
......@@ -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
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment