From ddbbc24c33ba8a30858a4265ffeb10bb5973cd96 Mon Sep 17 00:00:00 2001 From: Tyler Brock Date: Thu, 14 Apr 2016 14:58:54 -0700 Subject: [PATCH] Do some triple equals for great justice --- src/RestQuery.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/RestQuery.js b/src/RestQuery.js index 68b50173f3..479c84d067 100644 --- a/src/RestQuery.js +++ b/src/RestQuery.js @@ -374,7 +374,7 @@ RestQuery.prototype.replaceDontSelect = function() { RestQuery.prototype.runFind = function() { return this.config.database.find( this.className, this.restWhere, this.findOptions).then((results) => { - if (this.className == '_User') { + if (this.className === '_User') { for (var result of results) { delete result.password; } @@ -545,8 +545,8 @@ function replacePointers(object, path, replace) { return object; } - if (path.length == 0) { - if (object.__type == 'Pointer') { + if (path.length === 0) { + if (object.__type === 'Pointer') { return replace[object.objectId]; } return object;