1
0
Fork 0
mirror of synced 2024-06-28 02:50:50 +12:00

code styles

This commit is contained in:
NEOLPAR 2022-08-12 13:50:35 +01:00
parent e24e672559
commit fe51fe4df0

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
}