chore(): move nested functions out of if blocks
chore(): move nested functions out of if blocks

cambronjay/ionic,brianespinosa/ionic2-sass,janglednerves/ionic,jarrodkoch/ionic,manucorporat/ionic,AbraaoAlves/ionic,driftyco/ionic,joshesp/ionic,joshesp/ionic,TillaTheHun0/ionic,driftyco/ionic,cambronjay/ionic,TillaTheHun0/ionic,manucorporat/ionic,cambronjay/ionic,dennybiasiolli/ionic,alan-agius4/ionic,cambronjay/ionic,dennybiasiolli/ionic,dennybiasiolli/ionic,alan-agius4/ionic,manucorporat/ionic,manucorporat/ionic,jhlee8804/ionic,jarrodkoch/ionic,TillaTheHun0/ionic,jarrodkoch/ionic,driftyco/ionic,jarrodkoch/ionic,joshesp/ionic,AbraaoAlves/ionic,alan-agius4/ionic,manucorporat/ionic,dennybiasiolli/ionic,AbraaoAlves/ionic,driftyco/ionic,dennybiasiolli/ionic,TillaTheHun0/ionic,driftyco/ionic,jhlee8804/ionic,jhlee8804/ionic,AbraaoAlves/ionic,alan-agius4/ionic,jhlee8804/ionic,alan-agius4/ionic,janglednerves/ionic,alan-agius4/ionic,janglednerves/ionic,janglednerves/ionic,cambronjay/ionic,janglednerves/ionic,joshesp/ionic,AbraaoAlves/ionic,jarrodkoch/ionic,jhlee8804/ionic