mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-18 07:23:51 +01:00
Switch to BiomeJS (#306)
This commit is contained in:
@@ -17,13 +17,14 @@ export function useFormatText({
|
||||
queryFn: async () => {
|
||||
if (text === '' || !pretty) {
|
||||
return text;
|
||||
} else if (language === 'json') {
|
||||
return tryFormatJson(text);
|
||||
} else if (language === 'xml' || language === 'html') {
|
||||
return tryFormatXml(text);
|
||||
} else {
|
||||
return text;
|
||||
}
|
||||
if (language === 'json') {
|
||||
return tryFormatJson(text);
|
||||
}
|
||||
if (language === 'xml' || language === 'html') {
|
||||
return tryFormatXml(text);
|
||||
}
|
||||
return text;
|
||||
},
|
||||
}).data;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user