Skip to content

Commit

Permalink
replaced util.isArray with Array.isArray
Browse files Browse the repository at this point in the history
  • Loading branch information
msimerson committed Nov 18, 2014
1 parent 341f9c9 commit a595814
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions result_store.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// results.js - programmatic handling of plugin results

"use strict"
'use strict';

var util = require('util');
var config = require('./config');

// see docs in docs/Results.md
Expand Down Expand Up @@ -142,7 +141,7 @@ ResultStore.prototype.private_collate = function (result, name) {
for (var key in result) {
if (all_opts.indexOf(key) !== -1) continue;
if (hide.length && hide.indexOf(key) !== -1) continue;
if (util.isArray(result[key]) && result[key].length === 0) continue;
if (Array.isArray(result[key]) && result[key].length === 0) continue;
r.push(key + ': ' + result[key]);
}

Expand Down

0 comments on commit a595814

Please sign in to comment.