Skip to content

Commit

Permalink
remove fast-deep-equal
Browse files Browse the repository at this point in the history
  • Loading branch information
bugsounet committed Feb 8, 2025
1 parent 3b54225 commit 6403d90
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
"chart.js": "^4.4.7",
"chartjs-plugin-datalabels": "^2.2.0",
"esbuild": "^0.24.2",
"fast-deep-equal": "^3.1.3",
"fdir": "^6.4.3",
"linky": "^2.1.1",
"node-cron": "^3.0.3"
Expand Down
3 changes: 1 addition & 2 deletions src/node_helper.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const NodeHelper = require("node_helper");
const cron = require("node-cron");
var equal = require("fast-deep-equal");

var log = () => { /* do nothing */ };

Expand Down Expand Up @@ -92,7 +91,7 @@ module.exports = NodeHelper.create({
});
}
));
if (!equal(this.currentData, this.consumptionData) && !error) {
if (!error) {
this.consumptionData = this.currentData;
log("Données de consommation collecté.", this.consumptionData);
this.setChartValue();
Expand Down

0 comments on commit 6403d90

Please sign in to comment.