From 09277564670b839ef5782d2e01cecbb81174b901 Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Sat, 20 Feb 2016 23:10:17 +0100 Subject: [PATCH] - controlapi/statfs: simplify error handling --- src/nhttpd/tuxboxapi/controlapi.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/nhttpd/tuxboxapi/controlapi.cpp b/src/nhttpd/tuxboxapi/controlapi.cpp index 3f73be8cf..43a9dcbcf 100644 --- a/src/nhttpd/tuxboxapi/controlapi.cpp +++ b/src/nhttpd/tuxboxapi/controlapi.cpp @@ -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"); } //-----------------------------------------------------------------------------