Web interface: remove unneeded code to trim last new-line character on instances status page

This commit is contained in:
Jan Kaluza 2016-01-21 19:11:28 +01:00
parent b38cc30c44
commit af83093fd1

View file

@ -101,9 +101,6 @@ void APIServer::serve_instances(Server *server, Server::session *session, struct
if (status.empty()) {
status = "Cannot get the instance status.";
}
else if (*(status.end() - 1) == '\n') {
status.erase(status.end() - 1);
}
instance.AddMember("status", status.c_str(), json.GetAllocator());
bool running = true;