Skip to content

Commit

Permalink
style: fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Symbitic authored and rzr committed Dec 1, 2021
1 parent aff525b commit bac3eff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions lib/resolve-bindings.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
const os = require('os');

function getWindowsBindings() {
function getWindowsBindings () {
const ver = os.release().split('.').map(str => parseInt(str, 10));
if (!(ver[0] > 10 ||
(ver[0] === 10 && ver[1] > 0) ||
(ver[0] === 10 && ver[1] === 0 && ver[2] >= 15063))) {
(ver[0] === 10 && ver[1] > 0) ||
(ver[0] === 10 && ver[1] === 0 && ver[2] >= 15063))) {
return require('./hci-socket/bindings');
} else {
return require('./win/bindings');
Expand Down
4 changes: 2 additions & 2 deletions test/test.resolve-bindings.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ class NobleMac {}
class NobleWinrt {}

const NobleMacImport = proxyquire('../lib/mac/bindings', {
'bindings': () => ({ NobleMac })
bindings: () => ({ NobleMac })
});

const NobleWinrtImport = proxyquire('../lib/win/bindings', {
'bindings': () => ({ NobleWinrt })
bindings: () => ({ NobleWinrt })
});

const WebSocket = require('../lib/websocket/bindings');
Expand Down

0 comments on commit bac3eff

Please sign in to comment.