Simplify code

This commit is contained in:
Philipp Holzer 2021-11-12 20:13:04 +01:00
parent a9ddd6687b
commit a0c5c91886
Signed by: nupplaPhil
GPG Key ID: 24A7501396EB5432
1 changed files with 2 additions and 5 deletions

View File

@ -96,14 +96,11 @@ class ApiResponse
case 'atom':
case 'rss':
case 'xml':
$ret = $this->createXML($data, $root_element);
break;
return $this->createXML($data, $root_element);
case 'json':
default:
$ret = $data;
break;
return $data;
}
return $ret;
}
/**