We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b0bfbfc + 1aaa6da commit 83550d9Copy full SHA for 83550d9
1 file changed
src/hyperdeck/hyperdeck.js
@@ -39,13 +39,10 @@ var Hyperdeck = function(config) {
39
};
40
41
this.slotInfo = function (id) {
42
- if (id === 0 || id === 1 || id === 2){ //TO DO find if it's 0-1 or 1-2
+ if (typeof id === 'number') {
43
return this.makeRequest('slot info: slot id: ' + id);
44
} else{
45
- if (!id){
46
- return this.makeRequest('slot info');
47
- }
48
- throw new Error('Slot ID Value out of range');
+ return this.makeRequest('slot info');
49
}
50
51
0 commit comments