Minor Eslint fixes
This commit is contained in:
parent
bd2765f636
commit
7623d95e11
3 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue