Skip to content

Commit

Permalink
fix codacy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
bewest committed Aug 24, 2015
1 parent 7f637e4 commit 923a506
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/api/entries/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ function configure (app, wares, ctx) {
// Fetch one entry by id
api.get('/entries/:id', function(req, res, next) {
var ID_PATTERN = /^[a-f\d]{24}$/;
if (ID_PATTERN.test(req.params.id) && req.params.id.length == 24) {
if (ID_PATTERN.test(req.params.id) && req.params.id.length === 24) {
//assume sgv
req.params.model = 'sgv';
entries.getEntry(req.params.id, function(err, entry) {
Expand Down
2 changes: 1 addition & 1 deletion lib/entries.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function storage(env, ctx) {

function remove (opts, fn) {
with_collection(function (err, collection) {
collection.remove(find_options(opts), fn)
collection.remove(find_options(opts), fn);
});
}

Expand Down

0 comments on commit 923a506

Please sign in to comment.