Remove unneeded existence checks.

This commit is contained in:
Paulo Reis 2017-10-23 16:13:07 +01:00
parent c105048e8d
commit 632e3228e0

View file

@ -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