Skip to content

Commit

Permalink
variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
SoraKenji committed Apr 25, 2022
1 parent c06cfa4 commit 6a8c5ab
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/agent/providers/hardware/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,13 @@

"use strict";

var _ = require('underscore'),
os = require('os'),
var os = require('os'),
async = require('async'),
network = require('network'),
hooks = require('./../../hooks'),
common = require('./../../common'),
logger = common.logger.prefix('hardware'),
os_name = process.platform.replace('darwin', 'mac').replace('win32', 'windows'),
common = require('./../../../common'),
logger = common.logger.prefix('hardware'),
storage = require('./../../utils/storage'),
os_functions = require('./' + os_name),
exp = module.exports;
Expand Down Expand Up @@ -98,7 +95,7 @@ exp.track_hardware_changes = (data) => {
if (!current || (current.length > stored.length)) return diff_count++;
stored.forEach((value) => {
const foundIndex = current.findIndex((element) => element === value);
if (foundIndex === -1) return diffCount++;
if (foundIndex === -1) return diff_count++;
});
} else if (stored instanceof Object) {
if (!current || (Object.keys(current).length > Object.keys(stored).length)) return diff_count++;
Expand Down

0 comments on commit 6a8c5ab

Please sign in to comment.