refactor(modal): Remove unnecessary ternary

This commit is contained in:
Sabe Jones
2015-11-30 16:43:46 -05:00
parent 1643e3dbc6
commit dd3218ebbd

View File

@@ -115,7 +115,7 @@ habitrpg.controller("InventoryCtrl",
var potName = Content.hatchingPotions[potion.key].text();
if (!$window.confirm(window.env.t('hatchAPot', {potion: potName, egg: eggName}))) return;
var userHasPet = (user.items.pets[egg.key + '-' + potion.key] > 0) ? true:false;
var userHasPet = user.items.pets[egg.key + '-' + potion.key] > 0;
user.ops.hatch({params:{egg:egg.key, hatchingPotion:potion.key}});