chore: remove useless try/catch wrapper

pull/5690/head
Pavel Zavora 2021-03-09 06:19:38 +01:00
parent e55ea6152f
commit 10dad84139
1 changed files with 8 additions and 12 deletions

View File

@ -4,7 +4,6 @@ export const validateTextTemplate = async (
url: string,
template: string
): Promise<string> => {
try {
const {data: validation} = await AJAX({
url,
method: 'POST',
@ -14,7 +13,4 @@ export const validateTextTemplate = async (
})
return validation
} catch (error) {
throw error
}
}