From fe51fe4df0c1240862437b220e7dcd2bbb67920f Mon Sep 17 00:00:00 2001 From: NEOLPAR Date: Fri, 12 Aug 2022 13:50:35 +0100 Subject: [PATCH] code styles --- packages/server/src/api/controllers/view/utils.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/server/src/api/controllers/view/utils.js b/packages/server/src/api/controllers/view/utils.js index 7b5bad46b4..cdb55aed81 100644 --- a/packages/server/src/api/controllers/view/utils.js +++ b/packages/server/src/api/controllers/view/utils.js @@ -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 }