code styles

This commit is contained in:
NEOLPAR 2022-08-12 13:50:35 +01:00
parent 9408137826
commit 53a01941eb
1 changed files with 3 additions and 1 deletions

View File

@ -25,7 +25,9 @@ exports.getView = async viewName => {
return viewDoc.view
} catch (err) {
// Return null when PouchDB doesn't found the view
if (err.status === 404) return null
if (err.status === 404) {
return null
}
throw err
}