controlapi/statfs: simplify error handling

Origin commit data
------------------
Branch: ni/coolstream
Commit: 0927756467
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-02-20 (Sat, 20 Feb 2016)

Origin message was:
------------------
- controlapi/statfs: simplify error handling

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2016-02-20 23:10:17 +01:00
parent 8f5399d2f4
commit 312afea2b8

View File

@@ -3289,13 +3289,7 @@ void CControlAPI::StatfsCGI(CyhookHandler *hh) {
hh->WriteLn(result);
}
else
{
if (outType == json)
hh->WriteLn(json_out_error("statfs failed"));
else
hh->SendError();
}
hh->SendError("statfs failed");
}
//-----------------------------------------------------------------------------