Web interface: remove unneeded code to trim last new-line character on instances status page
This commit is contained in:
parent
b38cc30c44
commit
af83093fd1
1 changed files with 0 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue