code styles
This commit is contained in:
parent
e24e672559
commit
fe51fe4df0
|
@ -25,7 +25,9 @@ exports.getView = async viewName => {
|
||||||
return viewDoc.view
|
return viewDoc.view
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
// Return null when PouchDB doesn't found the view
|
// Return null when PouchDB doesn't found the view
|
||||||
if (err.status === 404) return null
|
if (err.status === 404) {
|
||||||
|
return null
|
||||||
|
}
|
||||||
|
|
||||||
throw err
|
throw err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue