Skip to content
This repository has been archived by the owner on Oct 12, 2021. It is now read-only.

Commit

Permalink
Remove redundant try-catch
Browse files Browse the repository at this point in the history
  • Loading branch information
jtart committed Jan 12, 2019
1 parent c95540e commit e54e278
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/loadInitialData.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,7 @@ const loadInitialData = async (url, routes) => {
return {};
}

try {
return await route.getInitialData({ match });
} catch (error) {
throw error;
}
return await route.getInitialData({ match });
};

export default loadInitialData;

0 comments on commit e54e278

Please sign in to comment.