aboutsummaryrefslogtreecommitdiffstats
path: root/CommandLineInterface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'CommandLineInterface.cpp')
-rw-r--r--CommandLineInterface.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/CommandLineInterface.cpp b/CommandLineInterface.cpp
index 60967895..f1350014 100644
--- a/CommandLineInterface.cpp
+++ b/CommandLineInterface.cpp
@@ -304,8 +304,7 @@ void CommandLineInterface::createFile(string const& _fileName, string const& _da
fs::path p(m_args["output-dir"].as<string>());
fs::create_directories(p);
ofstream outFile(m_args["output-dir"].as<string>() + "/" + _fileName);
- if (!_data.empty())
- outFile << _data;
+ outFile << _data;
if (!outFile)
BOOST_THROW_EXCEPTION(FileError() << errinfo_comment("Could not write to file: " + _fileName));
outFile.close();