Fix error check logic
Fix error check logic

If copy finished file (err == nil) then
use the error returned from out.Close()

GulajavaMinistudio/kubernetes,micahhausler/kubernetes,saad-ali/kubernetes,mosoft521/kubernetes,spzala/kubernetes,fanzhangio/kubernetes,olivierlemasle/kubernetes,nckturner/kubernetes,erwinvaneyk/kubernetes,cblecker/kubernetes,monopole/kubernetes,mikedanese/kubernetes,tpepper/kubernetes,li-ang/kubernetes,dims/kubernetes,liggitt/kubernetes,nckturner/kubernetes,k82cn/kubernetes,krmayankk/kubernetes,dixudx/kubernetes,yujuhong/kubernetes,linux-on-ibm-z/kubernetes,ping035627/kubernetes,enj/kubernetes,hex108/kubernetes,kevin-wangzefeng/kubernetes,kitt1987/kubernetes,warmchang/kubernetes,jessfraz/kubernetes,Clarifai/kubernetes,nikhita/kubernetes,pires/kubernetes,Lion-Wei/kubernetes,verb/kubernetes,coolsvap/kubernetes,yujuhong/kubernetes,kpgriffith/kubernetes,carlory/kubernetes,andrewrynhard/kubernetes,ping035627/kubernetes,dlorenc/kubernetes,andrewrynhard/kubernetes,thockin/kubernetes,tpepper/kubernetes,GulajavaMinistudio/kubernetes,soltysh/kubernetes,saad-ali/kubernetes,openshift/kubernetes,jagosan/kubernetes,cofyc/kubernetes,fanzhangio/kubernetes,yujuhong/kubernetes,MHBauer/kubernetes,roberthbailey/kubernetes,humblec/kubernetes,Clarifai/kubernetes,chestack/kubernetes,liggitt/kubernetes,linux-on-ibm-z/kubernetes,nikhita/kubernetes,PiotrProkop/kubernetes,mahak/kubernetes,dims/kubernetes,zhangmingld/kubernetes,mikedanese/kubernetes,joelsmith/kubernetes,dereknex/kubernetes,ingvagabund/kubernetes,mosoft521/kubernetes,erwinvaneyk/kubernetes,mengqiy/kubernetes,Lion-Wei/kubernetes,verult/kubernetes,gnufied/kubernetes,sdminonne/kubernetes,tomzhang/kubernetes,k82/kubernetes,stevesloka/kubernetes,kevensen/kubernetes,mfojtik/kubernetes,mikebrow/kubernetes,li-ang/kubernetes,verb/kubernetes,feiskyer/kubernetes,deads2k/kubernetes,PiotrProkop/kubernetes,weiwei04/kubernetes,shyamjvs/kubernetes,zhangmingld/kubernetes,JacobTanenbaum/kubernetes,zhangmingld/kubernetes,idvoretskyi/kubernetes,tcnghia/kubernetes,kubernetes/kubernetes,mikebrow/kubernetes,mfojtik/kubernetes,Acidburn0zzz/kubernetes,carlory/kubernetes,rrati/kubernetes,dereknex/kubernetes,fgimenez/kubernetes,nikhita/kubernetes,cblecker/kubernetes,MHBauer/kubernetes,cofyc/kubernetes,mYmNeo/kubernetes,xychu/kubernetes,tpepper/kubernetes,mikebrow/kubernetes,Acidburn0zzz/kubernetes,mengqiy/kubernetes,soltysh/kubernetes,kubernetes/kubernetes,soltysh/kubernetes,deads2k/kubernetes,kevensen/kubernetes,mosoft521/kubernetes,PI-Victor/kubernetes,hex108/kubernetes,shyamjvs/kubernetes,lojies/kubernetes,ii/kubernetes,iameli/kubernetes,matthyx/kubernetes,mikebrow/kubernetes,weiwei04/kubernetes,krmayankk/kubernetes,chestack/kubernetes,cofyc/kubernetes,mosoft521/kubernetes,feiskyer/kubernetes,feiskyer/kubernetes,fanzhangio/kubernetes,enj/kubernetes,hex108/kubernetes,micahhausler/kubernetes,jdef/kubernetes,bparees/kubernetes,xychu/kubernetes,openshift/kubernetes,olivierlemasle/kubernetes,kitt1987/kubernetes,GulajavaMinistudio/kubernetes,spzala/kubernetes,MikeSpreitzer/kubernetes,Lion-Wei/kubernetes,fabriziopandini/kubernetes,ravilr/kubernetes,fgimenez/kubernetes,coolsvap/kubernetes,ravisantoshgudimetla/kubernetes,yujuhong/kubernetes,mikedanese/kubernetes,weiwei04/kubernetes,jingxu97/kubernetes,x13n/kubernetes,cmluciano/kubernetes,verb/kubernetes,GulajavaMinistudio/kubernetes,tomzhang/kubernetes,cblecker/kubernetes,fanzhangio/kubernetes,fgimenez/kubernetes,nikhita/kubernetes,tpepper/kubernetes,mengqiy/kubernetes,humblec/kubernetes,lojies/kubernetes,aledbf/kubernetes,chrislovecnm/kubernetes,zhouhaibing089/kubernetes,alejandroEsc/kubernetes,rnaveiras/kubernetes,humblec/kubernetes,dixudx/kubernetes,krmayankk/kubernetes,tengqm/kubernetes,nak3/kubernetes,chestack/kubernetes,stevesloka/kubernetes,micahhausler/kubernetes,openshift/kubernetes,wongma7/kubernetes,jessfraz/kubernetes,andrewsykim/kubernetes,rafax/kubernetes,rafax/kubernetes,JacobTanenbaum/kubernetes,fabriziopandini/kubernetes,brendandburns/kubernetes,kevensen/kubernetes,pires/kubernetes,xychu/kubernetes,deads2k/kubernetes,kubernetes/kubernetes,dixudx/kubernetes,jessfraz/kubernetes,PI-Victor/kubernetes,chrislovecnm/kubernetes,jdef/kubernetes,chrislovecnm/kubernetes,jingxu97/kubernetes,dims/kubernetes,fabriziopandini/kubernetes,cmluciano/kubernetes,fanzhangio/kubernetes,kevensen/kubernetes,chrislovecnm/kubernetes,coolsvap/kubernetes,idvoretskyi/kubernetes,ravilr/kubernetes,krmayankk/kubernetes,kubernetes/kubernetes,stevesloka/kubernetes,linux-on-ibm-z/kubernetes,pires/kubernetes,mkumatag/kubernetes,iterion/kubernetes,warmchang/kubernetes,xlgao-zju/kubernetes,mahak/kubernetes,ii/kubernetes,jackfrancis/kubernetes,kitt1987/kubernetes,dereknex/kubernetes,andrewsykim/kubernetes,gnufied/kubernetes,mfojtik/kubernetes,olivierlemasle/kubernetes,nckturner/kubernetes,rrati/kubernetes,kpgriffith/kubernetes,jingxu97/kubernetes,gnufied/kubernetes,iameli/kubernetes,k82cn/kubernetes,mahak/kubernetes,humblec/kubernetes,idvoretskyi/kubernetes,sanjeevm0/kubernetes,cmluciano/kubernetes,joelsmith/kubernetes,lojies/kubernetes,olivierlemasle/kubernetes,tomzhang/kubernetes,mengqiy/kubernetes,tcnghia/kubernetes,x13n/kubernetes,MikeSpreitzer/kubernetes,dims/kubernetes,alejandroEsc/kubernetes,nak3/kubernetes,MikeSpreitzer/kubernetes,fabriziopandini/kubernetes,sdminonne/kubernetes,shyamjvs/kubernetes,roberthbailey/kubernetes,MHBauer/kubernetes,monopole/kubernetes,dixudx/kubernetes,spzala/kubernetes,feiskyer/kubernetes,lojies/kubernetes,xychu/kubernetes,jackfrancis/kubernetes,sdminonne/kubernetes,sanjeevm0/kubernetes,k82/kubernetes,yujuhong/kubernetes,dims/kubernetes,zhouhaibing089/kubernetes,sanjeevm0/kubernetes,cmluciano/kubernetes,cofyc/kubernetes,ingvagabund/kubernetes,x13n/kubernetes,erwinvaneyk/kubernetes,rrati/kubernetes,PI-Victor/kubernetes,brendandburns/kubernetes,wongma7/kubernetes,rrati/kubernetes,zhouhaibing089/kubernetes,liggitt/kubernetes,tengqm/kubernetes,matthyx/kubernetes,mYmNeo/kubernetes,zhouhaibing089/kubernetes,wongma7/kubernetes,roberthbailey/kubernetes,andrewsykim/kubernetes,ravilr/kubernetes,pires/kubernetes,dlorenc/kubernetes,idvoretskyi/kubernetes,ingvagabund/kubernetes,rafax/kubernetes,tcnghia/kubernetes,xlgao-zju/kubernetes,ravisantoshgudimetla/kubernetes,JacobTanenbaum/kubernetes,aledbf/kubernetes,MHBauer/kubernetes,Clarifai/kubernetes,mkumatag/kubernetes,linux-on-ibm-z/kubernetes,Clarifai/kubernetes,weiwei04/kubernetes,stevesloka/kubernetes,ping035627/kubernetes,gnufied/kubernetes,aledbf/kubernetes,jsafrane/kubernetes,jsafrane/kubernetes,openshift/kubernetes,ravisantoshgudimetla/kubernetes,xlgao-zju/kubernetes,tomzhang/kubernetes,PI-Victor/kubernetes,jdef/kubernetes,kevensen/kubernetes,kpgriffith/kubernetes,PiotrProkop/kubernetes,k82cn/kubernetes,iterion/kubernetes,cblecker/kubernetes,thockin/kubernetes,iterion/kubernetes,kevin-wangzefeng/kubernetes,Acidburn0zzz/kubernetes,mahak/kubernetes,JacobTanenbaum/kubernetes,alejandroEsc/kubernetes,carlory/kubernetes,li-ang/kubernetes,jsafrane/kubernetes,tcnghia/kubernetes,brendandburns/kubernetes,Acidburn0zzz/kubernetes,jagosan/kubernetes,iterion/kubernetes,xychu/kubernetes,jsafrane/kubernetes,cmluciano/kubernetes,andrewrynhard/kubernetes,Acidburn0zzz/kubernetes,mikedanese/kubernetes,weiwei04/kubernetes,mengqiy/kubernetes,k82/kubernetes,rnaveiras/kubernetes,erwinvaneyk/kubernetes,MHBauer/kubernetes,krmayankk/kubernetes,Acidburn0zzz/kubernetes,bparees/kubernetes,roberthbailey/kubernetes,gnufied/kubernetes,nak3/kubernetes,monopole/kubernetes,andrewsykim/kubernetes,ravilr/kubernetes,tengqm/kubernetes,nak3/kubernetes,dlorenc/kubernetes,verult/kubernetes,mfojtik/kubernetes,nckturner/kubernetes,mkumatag/kubernetes,dlorenc/kubernetes,roberthbailey/kubernetes,k82/kubernetes,lojies/kubernetes,saad-ali/kubernetes,nikhita/kubernetes,Lion-Wei/kubernetes,x13n/kubernetes,jingxu97/kubernetes,dereknex/kubernetes,chrislovecnm/kubernetes,jessfraz/kubernetes,tomzhang/kubernetes,BenTheElder/kubernetes,andrewrynhard/kubernetes,csrwng/kubernetes,monopole/kubernetes,andrewrynhard/kubernetes,k82cn/kubernetes,GulajavaMinistudio/kubernetes,dixudx/kubernetes,andrewsykim/kubernetes,liggitt/kubernetes,kevin-wangzefeng/kubernetes,enj/kubernetes,stevesloka/kubernetes,ingvagabund/kubernetes,linux-on-ibm-z/kubernetes,ii/kubernetes,saad-ali/kubernetes,andrewrynhard/kubernetes,spzala/kubernetes,hex108/kubernetes,aledbf/kubernetes,dlorenc/kubernetes,fgimenez/kubernetes,coolsvap/kubernetes,warmchang/kubernetes,kitt1987/kubernetes,olivierlemasle/kubernetes,xlgao-zju/kubernetes,xychu/kubernetes,tomzhang/kubernetes,kitt1987/kubernetes,coolsvap/kubernetes,mYmNeo/kubernetes,verult/kubernetes,ii/kubernetes,rnaveiras/kubernetes,cofyc/kubernetes,feiskyer/kubernetes,ravisantoshgudimetla/kubernetes,sanjeevm0/kubernetes,nak3/kubernetes,dereknex/kubernetes,kubernetes/kubernetes,csrwng/kubernetes,mosoft521/kubernetes,ingvagabund/kubernetes,iterion/kubernetes,mYmNeo/kubernetes,jagosan/kubernetes,alejandroEsc/kubernetes,micahhausler/kubernetes,sdminonne/kubernetes,yujuhong/kubernetes,BenTheElder/kubernetes,rrati/kubernetes,openshift/kubernetes,iameli/kubernetes,fgimenez/kubernetes,PI-Victor/kubernetes,saad-ali/kubernetes,mYmNeo/kubernetes,krmayankk/kubernetes,sanjeevm0/kubernetes,deads2k/kubernetes,aledbf/kubernetes,mkumatag/kubernetes,verult/kubernetes,dereknex/kubernetes,chestack/kubernetes,iterion/kubernetes,tomzhang/kubernetes,tomzhang/kubernetes,enj/kubernetes,chrislovecnm/kubernetes,ravisantoshgudimetla/kubernetes,JacobTanenbaum/kubernetes,li-ang/kubernetes,jingxu97/kubernetes,jdef/kubernetes,saad-ali/kubernetes,tengqm/kubernetes,rafax/kubernetes,soltysh/kubernetes,erwinvaneyk/kubernetes,ii/kubernetes,matthyx/kubernetes,chestack/kubernetes,hex108/kubernetes,verb/kubernetes,MikeSpreitzer/kubernetes,rnaveiras/kubernetes,ping035627/kubernetes,tengqm/kubernetes,x13n/kubernetes,shyamjvs/kubernetes,tomzhang/kubernetes,joelsmith/kubernetes,verult/kubernetes,zhangmingld/kubernetes,ping035627/kubernetes,tcnghia/kubernetes,sanjeevm0/kubernetes,mfojtik/kubernetes,csrwng/kubernetes,kevin-wangzefeng/kubernetes,wongma7/kubernetes,idvoretskyi/kubernetes,mfojtik/kubernetes,mikedanese/kubernetes,kpgriffith/kubernetes,erwinvaneyk/kubernetes,jackfrancis/kubernetes,carlory/kubernetes,PI-Victor/kubernetes,Lion-Wei/kubernetes,Clarifai/kubernetes,idvoretskyi/kubernetes,csrwng/kubernetes,thockin/kubernetes,kpgriffith/kubernetes,warmchang/kubernetes,verb/kubernetes,tcnghia/kubernetes,fanzhangio/kubernetes,tpepper/kubernetes,cmluciano/kubernetes,bparees/kubernetes,humblec/kubernetes,mikebrow/kubernetes,joelsmith/kubernetes,xlgao-zju/kubernetes,rnaveiras/kubernetes,tpepper/kubernetes,PiotrProkop/kubernetes,dlorenc/kubernetes,joelsmith/kubernetes,ravisantoshgudimetla/kubernetes,wongma7/kubernetes,ingvagabund/kubernetes,jagosan/kubernetes,xlgao-zju/kubernetes,li-ang/kubernetes,nckturner/kubernetes,x13n/kubernetes,matthyx/kubernetes,bparees/kubernetes,nak3/kubernetes,csrwng/kubernetes,joelsmith/kubernetes,bparees/kubernetes,MHBauer/kubernetes,jackfrancis/kubernetes,mahak/kubernetes,alejandroEsc/kubernetes,brendandburns/kubernetes,soltysh/kubernetes,Clarifai/kubernetes,kitt1987/kubernetes,jsafrane/kubernetes,pires/kubernetes,warmchang/kubernetes,jackfrancis/kubernetes,Lion-Wei/kubernetes,hex108/kubernetes,k82cn/kubernetes,BenTheElder/kubernetes,cofyc/kubernetes,jagosan/kubernetes,mkumatag/kubernetes,kevin-wangzefeng/kubernetes,andrewsykim/kubernetes,fabriziopandini/kubernetes,brendandburns/kubernetes,kpgriffith/kubernetes,matthyx/kubernetes,PiotrProkop/kubernetes,verult/kubernetes,jdef/kubernetes,mYmNeo/kubernetes,cblecker/kubernetes,brendandburns/kubernetes,thockin/kubernetes,weiwei04/kubernetes,iameli/kubernetes,jdef/kubernetes,micahhausler/kubernetes,ravilr/kubernetes,fgimenez/kubernetes,shyamjvs/kubernetes,spzala/kubernetes,BenTheElder/kubernetes,k82/kubernetes,thockin/kubernetes,deads2k/kubernetes,carlory/kubernetes,JacobTanenbaum/kubernetes,zhangmingld/kubernetes,sdminonne/kubernetes,jessfraz/kubernetes,BenTheElder/kubernetes,pires/kubernetes,zhouhaibing089/kubernetes,MikeSpreitzer/kubernetes,coolsvap/kubernetes,zhangmingld/kubernetes,liggitt/kubernetes,monopole/kubernetes,iameli/kubernetes,enj/kubernetes,stevesloka/kubernetes