Remove unused conditions in QueryResult

The mode is returned by getCodeMirrorModeBasedOnContentType(),
which always prefixes the returned values with 'application/'.

However returning data on those application/html or application/text
break Bruno.
This commit is contained in:
André Glüpker 2023-10-31 11:55:45 +01:00
parent fa8ec4267f
commit 820e3033ea

View File

@ -28,7 +28,7 @@ const formatResponse = (data, mode) => {
return safeStringifyJSON(parsed, true);
}
if (['text', 'html'].includes(mode) || typeof data === 'string') {
if (typeof data === 'string') {
return data;
}