Skip to content

Commit b489f93

Browse files
committed
PR review fixes
- Remove reduntant Boolean call - Fix undefined error variable
1 parent 8be4000 commit b489f93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

routes/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ router.post('/accounts', async (req, res) => {
5454

5555
router.get('/', async (req, res, next) => {
5656
try {
57-
if (!Boolean(req.app.locals.zabo)) {
57+
if (!req.app.locals.zabo) {
5858
// Initializing the JS SDK
5959
// Docs: https://zabo.com/docs/#initializing-the-js-sdks
6060
const zabo = await Zabo.init({
@@ -70,7 +70,7 @@ router.get('/', async (req, res, next) => {
7070
clientId: process.env.CLIENT_ID
7171
})
7272
} catch (error) {
73-
res.status(500).send({ message: err.message })
73+
res.status(500).send({ message: error.message })
7474
}
7575
})
7676

0 commit comments

Comments
 (0)