mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 07:22:57 +02:00
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:
@@ -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");
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user