Skip to content

Commit

Permalink
Linting code
Browse files Browse the repository at this point in the history
  • Loading branch information
devconcept committed May 10, 2020
1 parent 3c64df3 commit be5d8e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/gridfs.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class GridFSStorage extends EventEmitter {
.then(({db, client}) => {
this._setDb(db, client);
})
.catch(error => this._fail(error));
.catch((error) => this._fail(error));
}

/**
Expand Down
2 changes: 1 addition & 1 deletion test/utils/testutils.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import delay from 'delay';
import {version} from 'mongodb/package.json';
import {connection, storageOptions} from './settings';

export const mongoVersion = version.split('.').map(Number);
export const mongoVersion = version.split('.').map((v) => Number(v));

export const files = ['sample1.jpg', 'sample2.jpg'].map((file) =>
path.join(__dirname, '/../attachments/', file)
Expand Down

0 comments on commit be5d8e0

Please sign in to comment.