mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 15:32:59 +02:00
- controlapi/statfs: simplify error handling
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