From 0896f338243cb6895738623c6a5b8832eacc754f Mon Sep 17 00:00:00 2001 From: Drew Gross Date: Tue, 24 May 2016 16:30:43 -0700 Subject: [PATCH] Remove unnecessary null check --- src/Controllers/DatabaseController.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Controllers/DatabaseController.js b/src/Controllers/DatabaseController.js index 05fab5bb..76fc5589 100644 --- a/src/Controllers/DatabaseController.js +++ b/src/Controllers/DatabaseController.js @@ -649,11 +649,11 @@ DatabaseController.prototype.find = function(className, query, { // Parse.com treats queries on _created_at and _updated_at as if they were queries on createdAt and updatedAt, // so duplicate that behaviour here. If both are specified, the corrent behaviour to match Parse.com is to // use the one that appears first in the sort list. - if (sort && sort._created_at) { + if (sort._created_at) { sort.createdAt = sort._created_at; delete sort._created_at; } - if (sort && sort._updated_at) { + if (sort._updated_at) { sort.updatedAt = sort._updated_at; delete sort._updated_at; }