Skip to content

Commit

Permalink
Fix server eslint warnings (#1023)
Browse files Browse the repository at this point in the history
Co-authored-by: Pierre-Gilles Leymarie <pierregilles.leymarie@gmail.com>
  • Loading branch information
atrovato and Pierre-Gilles authored Dec 21, 2020
1 parent 0d8e2c9 commit da1d864
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion server/services/usb/api/usb.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = function UsbController({ list }) {
const ports = await list();

res.json(
ports.map(function(port) {
ports.map((port) => {
return {
comPath: port.path,
comName: port.path,
Expand Down
2 changes: 1 addition & 1 deletion server/test/benchmark/triggers.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ for (let i = 0; i < NUMBER_OF_LISTENERS; i += 1) {
}
}

// eslint-disable-next-line no-constant-condition
while (1) {
// eslint-disable-line
const start = process.hrtime();
EVENTS_TO_THROW.forEach((item, index) => {
event.emit(item, {});
Expand Down
2 changes: 1 addition & 1 deletion server/test/lib/gateway/GladysGatewayClientMock.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const fs = require('fs');
const { fake } = require('sinon');

const GladysGatewayClientMock = function() {
const GladysGatewayClientMock = function GladysGatewayClientMock() {
return {
login: fake.resolves({
two_factor_token: 'token',
Expand Down

0 comments on commit da1d864

Please sign in to comment.