From ba3ff10ccd16244f717562f2b272dbe208d7e830 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Tue, 17 Mar 2020 20:37:51 -0700 Subject: [PATCH] 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 --- src/fs/io/FileOutputStream.cxx | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/fs/io/FileOutputStream.cxx b/src/fs/io/FileOutputStream.cxx index 51f73678a..b07ca487b 100644 --- a/src/fs/io/FileOutputStream.cxx +++ b/src/fs/io/FileOutputStream.cxx @@ -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 } }