Reformat source

This commit is contained in:
badaix 2022-09-08 11:41:16 +02:00
parent d4bdbc3844
commit f5e75453ea
2 changed files with 13 additions and 17 deletions

View file

@ -72,12 +72,10 @@ namespace strutils = utils::string;
#ifndef WINDOWS
static std::string execGetOutput(const std::string& cmd)
{
std::shared_ptr<::FILE> pipe(popen((cmd + " 2> /dev/null").c_str(), "r"),
[](::FILE* stream)
{
if (stream != nullptr)
pclose(stream);
});
std::shared_ptr<::FILE> pipe(popen((cmd + " 2> /dev/null").c_str(), "r"), [](::FILE* stream) {
if (stream != nullptr)
pclose(stream);
});
if (!pipe)
return "";
char buffer[1024];