Skip to content

Commit 0896f33

Browse files
committed
Remove unnecessary null check
1 parent 3ed3c7b commit 0896f33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Controllers/DatabaseController.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -649,11 +649,11 @@ DatabaseController.prototype.find = function(className, query, {
649649
// Parse.com treats queries on _created_at and _updated_at as if they were queries on createdAt and updatedAt,
650650
// so duplicate that behaviour here. If both are specified, the corrent behaviour to match Parse.com is to
651651
// use the one that appears first in the sort list.
652-
if (sort && sort._created_at) {
652+
if (sort._created_at) {
653653
sort.createdAt = sort._created_at;
654654
delete sort._created_at;
655655
}
656-
if (sort && sort._updated_at) {
656+
if (sort._updated_at) {
657657
sort.updatedAt = sort._updated_at;
658658
delete sort._updated_at;
659659
}

0 commit comments

Comments
 (0)