Skip to content

Commit 51970fb

Browse files
TylerBrockdrew-gross
authored andcommitted
Do some triple equals for great justice (#1499)
1 parent d57e384 commit 51970fb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/RestQuery.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ RestQuery.prototype.replaceDontSelect = function() {
374374
RestQuery.prototype.runFind = function() {
375375
return this.config.database.find(
376376
this.className, this.restWhere, this.findOptions).then((results) => {
377-
if (this.className == '_User') {
377+
if (this.className === '_User') {
378378
for (var result of results) {
379379
delete result.password;
380380
}
@@ -545,8 +545,8 @@ function replacePointers(object, path, replace) {
545545
return object;
546546
}
547547

548-
if (path.length == 0) {
549-
if (object.__type == 'Pointer') {
548+
if (path.length === 0) {
549+
if (object.__type === 'Pointer') {
550550
return replace[object.objectId];
551551
}
552552
return object;

0 commit comments

Comments
 (0)