fix: remove useless catchs and empty line

This commit is contained in:
Barış Soner Uşaklı
2019-08-11 00:13:41 -04:00
parent fd5f9822bd
commit 5fce45580a
3 changed files with 3 additions and 13 deletions

View File

@@ -134,11 +134,7 @@ widgets.getArea = async function (template, location) {
if (!result) {
return [];
}
try {
return parseWidgetData(result);
} catch (err) {
throw err;
}
return parseWidgetData(result);
};
function parseWidgetData(data) {