STORM-1986 Eliminated early return per code review

meow-7.2.2
Jonathan Yap 2013-11-27 10:43:02 -05:00
parent db8e4824e7
commit bb68d6a889
1 changed files with 7 additions and 9 deletions

View File

@ -1473,16 +1473,14 @@ void LLItemBridge::doShowOnMap(LLLandmark* landmark)
{
LLVector3d landmark_global_pos;
// landmark has already been tested for NULL by calling routine
if (!landmark->getGlobalPos(landmark_global_pos))
if (landmark->getGlobalPos(landmark_global_pos))
{
return;
}
LLFloaterWorldMap* worldmap_instance = LLFloaterWorldMap::getInstance();
if (!landmark_global_pos.isExactlyZero() && worldmap_instance)
{
worldmap_instance->trackLocation(landmark_global_pos);
LLFloaterReg::showInstance("world_map", "center");
LLFloaterWorldMap* worldmap_instance = LLFloaterWorldMap::getInstance();
if (!landmark_global_pos.isExactlyZero() && worldmap_instance)
{
worldmap_instance->trackLocation(landmark_global_pos);
LLFloaterReg::showInstance("world_map", "center");
}
}
}