From 632e3228e0ed2c116668ae6461dd327f1ca79206 Mon Sep 17 00:00:00 2001 From: Paulo Reis Date: Mon, 23 Oct 2017 16:13:07 +0100 Subject: [PATCH] Remove unneeded existence checks. --- .../web/public/coffee/main/project-list/project-list.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/web/public/coffee/main/project-list/project-list.coffee b/services/web/public/coffee/main/project-list/project-list.coffee index d84c348218..24a65d170b 100644 --- a/services/web/public/coffee/main/project-list/project-list.coffee +++ b/services/web/public/coffee/main/project-list/project-list.coffee @@ -27,8 +27,8 @@ define [ recalculateProjectListHeight = () -> $projListCard = $(".project-list-card") - topOffset = $projListCard?.offset()?.top - cardPadding = $projListCard?.outerHeight() - $projListCard?.height() + topOffset = $projListCard.offset()?.top + cardPadding = $projListCard.outerHeight() - $projListCard.height() bottomOffset = $("footer").outerHeight() height = $window.innerHeight - topOffset - bottomOffset - cardPadding $scope.projectListHeight = height