Skip to content

Commit

Permalink
Removed obsolete isArray check
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiaslohr committed Jul 11, 2019
1 parent 88405b1 commit 619b2a0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/instance.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,7 @@ function setInstance(host, callback) {
function addInstance(host, alias) {
// get the persisted list of instances
var instances = getConfiguredInstances();
if ( !Array.isArray(instances) ) {
instances = [];
}

// search for a duplicate (by host only)
var instanceDuplicates = instances.filter(function(i) {
return ( i.host === host );
Expand Down

0 comments on commit 619b2a0

Please sign in to comment.