Minor Eslint fixes

This commit is contained in:
Justin Stephenson 2023-07-05 10:43:24 -04:00
parent bd2765f636
commit 7623d95e11
3 changed files with 3 additions and 3 deletions

View file

@ -246,7 +246,7 @@ const PacketBuffer = class {
this.reportError("\"" + field + "\" field is missing");
}
const value = object[field];
if (typeof (value) != typeof (type)) {
if (typeof (value) !== typeof (type)) {
this.reportError("invalid \"" + field + "\" field type: " + typeof (value));
}
return value;