Skip to content

Commit

Permalink
Remove useless var assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
styfle authored and rwaldron committed Apr 5, 2019
1 parent 33750a6 commit 93acf35
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/led/led.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,9 @@ var Controllers = {
value: function(opts, pinValue) {

var state = priv.get(this);
var isFirmata = true;
var isFirmata = Pins.isFirmata(this);
var defaultLed;

isFirmata = Pins.isFirmata(this);

if (isFirmata && typeof pinValue === "string" && pinValue[0] === "A") {
pinValue = this.io.analogPins[+pinValue.slice(1)];
}
Expand Down

0 comments on commit 93acf35

Please sign in to comment.