minor refactoring to hoist vars or eliminate them
minor refactoring to hoist vars or eliminate them

runt18/curl,cujojs/curl,cujojs/curl,jaredcacurak/curl,jaredcacurak/curl,runt18/curl,djkost85/curl-1,djkost85/curl-1,vtex/curl,vtex/curl,dfd07d/curl,marian-r/curl,djkost85/curl-1,vtex/curl,jaredcacurak/curl,cujojs/curl,dfd07d/curl,marian-r/curl,dfd07d/curl,marian-r/curl,runt18/curl