diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-05-02 06:57:57 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-05-02 06:57:57 +0200 |
commit | 3442ae7718679a4da8664bdbb561f746e0357203 (patch) | |
tree | 5ed661a5998ac91f309bb27cb5ae52dfb4178cca /services/sync/modules/record.js | |
parent | 61de1c80cdc6c04e71fde07cc5028af503438134 (diff) | |
download | UXP-3442ae7718679a4da8664bdbb561f746e0357203.tar UXP-3442ae7718679a4da8664bdbb561f746e0357203.tar.gz UXP-3442ae7718679a4da8664bdbb561f746e0357203.tar.lz UXP-3442ae7718679a4da8664bdbb561f746e0357203.tar.xz UXP-3442ae7718679a4da8664bdbb561f746e0357203.zip |
Fix unsafe "instanceof" negations
https://github.com/MoonchildProductions/Pale-Moon/pull/1173
Diffstat (limited to 'services/sync/modules/record.js')
-rw-r--r-- | services/sync/modules/record.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/services/sync/modules/record.js b/services/sync/modules/record.js index 02f7f281a..f7a69d9ef 100644 --- a/services/sync/modules/record.js +++ b/services/sync/modules/record.js @@ -43,7 +43,7 @@ WBORecord.prototype = { // Get thyself from your URI, then deserialize. // Set thine 'response' field. fetch: function fetch(resource) { - if (!resource instanceof Resource) { + if (!(resource instanceof Resource)) { throw new Error("First argument must be a Resource instance."); } @@ -56,7 +56,7 @@ WBORecord.prototype = { }, upload: function upload(resource) { - if (!resource instanceof Resource) { + if (!(resource instanceof Resource)) { throw new Error("First argument must be a Resource instance."); } |