Apply eqeqeq lint rule
This commit is contained in:
1 parent
61ac4d7fa5
commit
40a39f089f
4 files changed
+8
-7
No files matched your search
+2
-2
@@ -157,7 +157,7 @@ function unpack(deviceData, path, revision) {
|
||||
) {
|
||||
for (let m = 0; m < allMatches.length; ++m) {
|
||||
let k;
|
||||
for (k = i; k >= 0; --k) if (allMatches[m][k] != up[k]) break;
|
||||
for (k = i; k >= 0; --k) if (allMatches[m][k] !== up[k]) break;
|
||||
|
||||
if (k < 0) {
|
||||
filtered.push(allMatches[m]);
|
||||
@@ -226,7 +226,7 @@ function clear(deviceData, path, timestamp, attributes, changeFlags = 0) {
|
||||
deviceData.timestamps.delete(p);
|
||||
deviceData.attributes.delete(p);
|
||||
changeFlags |= 1;
|
||||
} else if (attributes && p.length == path.length) {
|
||||
} else if (attributes && p.length === path.length) {
|
||||
const currentAttributes = deviceData.attributes.get(p);
|
||||
if (currentAttributes) {
|
||||
let newAttrs;
|
||||
|
||||
Reference in new issue
Block a user