From 51970fb470cb04e4c5b0ea1281006cc7682c2888 Mon Sep 17 00:00:00 2001 From: Tyler Brock Date: Thu, 14 Apr 2016 15:44:22 -0700 Subject: [PATCH] Do some triple equals for great justice (#1499) --- src/RestQuery.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/RestQuery.js b/src/RestQuery.js index 68b50173..479c84d0 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;