Replace fragment of unit test code with trim_trailing_new_line()
This commit is contained in:
parent
ad434bb651
commit
62305ecb45
|
@ -314,12 +314,7 @@ const std::string SupportedFileSystemsTest::create_loopdev(const std::string& im
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
// Strip trailing New Line.
|
return Utils::trim_trailing_new_line(output);
|
||||||
size_t len = output.length();
|
|
||||||
if (len > 0 && output[len-1] == '\n')
|
|
||||||
output.resize(len-1);
|
|
||||||
|
|
||||||
return output;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue