Skip to content

Commit

Permalink
Merge branch 'fix/spec-version-1.12.11' into 'master'
Browse files Browse the repository at this point in the history
fix: fix error in if statement and name of variable

See merge request prey/js/prey-node-client!1022
  • Loading branch information
beregcamlost committed Jul 30, 2024
2 parents ab91007 + 16e4b43 commit 90fe3df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/agent/providers/hardware/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ exp.track_hardware_changes = (dataTrack) => {
}
}
Object.keys(stored).forEach((key) => {
if (!key.includes('ip') && !!key.includes('netmask') && current && stored) {
if (!key.includes('ip') && !key.includes('netmask') && current && stored) {
compareField(current[key], stored[key]);
}
});
Expand All @@ -202,7 +202,7 @@ exp.track_hardware_changes = (dataTrack) => {
}
// eslint-disable-next-line consistent-return
let dataStoredModified;
if (typeof dataTrack !== 'object') dataStoredModified = storedData;
if (typeof storedData !== 'object') dataStoredModified = storedData;
if (typeof storedData === 'object') dataStoredModified = removeKeysFromObjectImmutable(storedData, exclusionList);

compareField(data, dataStoredModified);
Expand Down

0 comments on commit 90fe3df

Please sign in to comment.