Skip to content

Commit

Permalink
Merge pull request #726 from scottgonzalez/wii-opts-guard
Browse files Browse the repository at this point in the history
Wii: Remove check for opts existing before use
  • Loading branch information
rwaldron committed Apr 20, 2015
2 parents c6a5fd9 + 19cc7fe commit 75b5b9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/wii.js
Expand Up @@ -73,8 +73,8 @@ function Wii(opts) {
this.freq = opts.freq || 500;

// Button instance properties
this.holdtime = opts && opts.holdtime || 500;
this.threshold = opts && opts.threshold || 10;
this.holdtime = opts.holdtime || 500;
this.threshold = opts.threshold || 10;

// Initialize components
device.initialize.call(this);
Expand Down

0 comments on commit 75b5b9f

Please sign in to comment.