Commit 7b29fbf3 authored by Dominik Charousset's avatar Dominik Charousset

Fix formatting

parent 9c932514
...@@ -106,9 +106,10 @@ std::string get_root_uuid() { ...@@ -106,9 +106,10 @@ std::string get_root_uuid() {
ifstream fs; ifstream fs;
fs.open("/etc/fstab", std::ios_base::in); fs.open("/etc/fstab", std::ios_base::in);
columns_iterator end; columns_iterator end;
auto i = std::find_if(columns_iterator{&fs}, end, [](const vector<string>& cols) { auto i = std::find_if(columns_iterator{&fs}, end,
return cols.size() == 6 && cols[1] == "/"; [](const vector<string>& cols) {
}); return cols.size() == 6 && cols[1] == "/";
});
if (i != end) { if (i != end) {
uuid = std::move((*i)[0]); uuid = std::move((*i)[0]);
const char cstr[] = {"UUID="}; const char cstr[] = {"UUID="};
......
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