Skip to content

Commit

Permalink
Fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
iamigo committed Feb 17, 2017
1 parent 7480022 commit ac94e22
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions utils/jwtUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ function verifyToken(req, cb) {
where: {
name: decodedData.tokenname,
createdBy: user.id,
}
},
})
.then(checkTokenRecord)
.then((ok) => {
Expand All @@ -128,9 +128,7 @@ function verifyToken(req, cb) {
return handleInvalidToken(cb);
}
})
.catch((tokenError) => {
return handleError(cb, tokenError, 'ApiToken');
});
.catch((tokenError) => handleError(cb, tokenError, 'ApiToken'));
} else { // eslint-disable-line no-else-return
return handleInvalidToken(cb);
}
Expand Down

0 comments on commit ac94e22

Please sign in to comment.