Skip to content

Commit

Permalink
Update setColor.js
Browse files Browse the repository at this point in the history
  • Loading branch information
stellarpower authored Oct 17, 2017
1 parent 9d17378 commit febb51a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/setColor.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ var setMode = require('./setMode');
module.exports = function(keyboard, region, color, intensity){
if (!region) throw 'missing region';
if (!color) throw 'missing color';
if (!intensity) intensity = 'high'

console.log(color)
if (!intensity) intensity = 'high';

if (typeof constants.regions[region] === 'undefined') throw 'invalid region';
if (typeof constants.levels[intensity] === 'undefined') throw 'invalid intensity';
Expand Down

0 comments on commit febb51a

Please sign in to comment.