Skip to content

Commit

Permalink
fix: don't make a set from a set, #9
Browse files Browse the repository at this point in the history
zones isn't parsed properly because it creates a Set from a Set.
  • Loading branch information
gtech99 authored Aug 23, 2024
1 parent eef9c4d commit a8bbcc8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ exports.load_config = function () {
// active zones
if (this.cfg.main.periodic_checks < 5) {
// all configured are enabled
this.zones = new Set(...this.cfg.main.zones)
// The original code is making a Set from the already existing Set created above. It leads to gibberish
//this.zones = new Set(...this.cfg.main.zones)
this.zones = this.cfg.main.zones
} else {
this.zones = new Set() // populated by check_zones()
}
Expand Down

0 comments on commit a8bbcc8

Please sign in to comment.