mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 16:05:49 +01:00
fix: remove useless catchs and empty line
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user