Skip to content

Commit

Permalink
Wii: Remove check for opts existing before use
Browse files Browse the repository at this point in the history
  • Loading branch information
scottgonzalez committed Apr 11, 2015
1 parent 522ee92 commit 19cc7fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/wii.js
Original file line number Diff line number Diff line change
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 19cc7fe

Please sign in to comment.