code formating

This commit is contained in:
gabime 2018-10-05 15:21:05 +03:00
parent dea6a7c217
commit 3eadda9466

View File

@ -8,12 +8,12 @@ void prepare_logdir()
system("del /F /Q logs\\*"); system("del /F /Q logs\\*");
#else #else
auto rv = system("mkdir -p logs"); auto rv = system("mkdir -p logs");
if(rv != 0) if (rv != 0)
{ {
throw std::runtime_error("Failed to mkdir -p logs"); throw std::runtime_error("Failed to mkdir -p logs");
} }
rv = system("rm -f logs/*"); rv = system("rm -f logs/*");
if(rv != 0) if (rv != 0)
{ {
throw std::runtime_error("Failed to rm -f logs/*"); throw std::runtime_error("Failed to rm -f logs/*");
} }
@ -64,5 +64,4 @@ bool ends_with(std::string const &value, std::string const &ending)
return false; return false;
} }
return std::equal(ending.rbegin(), ending.rend(), value.rbegin()); return std::equal(ending.rbegin(), ending.rend(), value.rbegin());
} }