Skip to content

Commit

Permalink
Do some triple equals for great justice (#1499)
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerBrock authored and drew-gross committed Apr 14, 2016
1 parent d57e384 commit 51970fb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/RestQuery.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 51970fb

Please sign in to comment.