Skip to content

Commit

Permalink
lint: fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
HighSoftWare96 committed Dec 29, 2020
1 parent c39e7cc commit cfc8574
Show file tree
Hide file tree
Showing 34 changed files with 1,054 additions and 976 deletions.
4 changes: 2 additions & 2 deletions backend/bridge/boot.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const boot = function boot() {
// boot operations
// boot operations
};

module.exports = {
boot
boot
};
18 changes: 9 additions & 9 deletions backend/bridge/helpers/errors.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
const { MoleculerError } = require("moleculer").Errors;
const { MoleculerError } = require('moleculer').Errors;

const notFound = function notFound(entityName, entityId) {
return new MoleculerError(
'Element not found', 404, 'NOT_FOUND', { entityName, entityId }
);
}
return new MoleculerError(
'Element not found', 404, 'NOT_FOUND', { entityName, entityId }
);
};

const roomFull = function roomFull(roomId) {
return new MoleculerError('Full room', 400, 'FULL_ROOM', { roomId });
}
return new MoleculerError('Full room', 400, 'FULL_ROOM', { roomId });
};

module.exports = {
notFound,
roomFull
notFound,
roomFull
};
Loading

0 comments on commit cfc8574

Please sign in to comment.