keg_relocate: replaced 'if' with guard clause
keg_relocate: replaced 'if' with guard clause

Closes #46211.

totalvoidness/homebrew,bukzor/linuxbrew,ralic/homebrew,skinny-framework/homebrew,johanhammar/homebrew,johanhammar/homebrew,galaxy001/homebrew,cscetbon/homebrew,influxdb/homebrew,danabrand/linuxbrew,pcottle/homebrew,hakamadare/homebrew,liamstask/homebrew,kodabb/homebrew,jiashuw/homebrew,kevinastone/homebrew,ralic/homebrew,royhodgman/homebrew,joshua-rutherford/homebrew,esamson/homebrew,apjanke/homebrew,influxdb/homebrew,frickler01/homebrew,mmizutani/homebrew,pcottle/homebrew,saketkc/linuxbrew,menivaitsi/homebrew,jab/homebrew,osimola/homebrew,bigbes/homebrew,felixonmars/homebrew,dalanmiller/homebrew,feelpp/homebrew,lrascao/homebrew,jmagnusson/homebrew,gawbul/homebrew,ryanfb/homebrew,mmizutani/homebrew,mobileoverlord/homebrew-1,dutchcoders/homebrew,ge11232002/homebrew,yumitsu/homebrew,pcottle/homebrew,koraktor/homebrew,bukzor/linuxbrew,sjackman/linuxbrew,alebcay/homebrew,OJFord/homebrew,frodeaa/homebrew,ryanfb/homebrew,gicmo/homebrew,benjaminfrank/homebrew,drbenmorgan/linuxbrew,ear/homebrew,jiashuw/homebrew,drbenmorgan/linuxbrew,joshua-rutherford/homebrew,yazuuchi/homebrew,deorth/homebrew,dongcarl/homebrew,josa42/homebrew,optikfluffel/homebrew,galaxy001/homebrew,ExtremeMan/homebrew,LinusU/homebrew,tschoonj/homebrew,jiashuw/homebrew,pdxdan/homebrew,SteveClement/homebrew,decors/homebrew,treyharris/homebrew,Angeldude/linuxbrew,hanxue/homebrew,ento/homebrew,ehamberg/homebrew,Angeldude/linuxbrew,Homebrew/homebrew,pdxdan/homebrew,ento/homebrew,totalvoidness/homebrew,Chilledheart/homebrew,mkrapp/homebrew,knpwrs/homebrew,hanxue/homebrew,reelsense/homebrew,quantumsteve/homebrew,muellermartin/homebrew,dericed/homebrew,jamer/homebrew,heinzf/homebrew,Angeldude/linuxbrew,kenips/homebrew,AlexejK/homebrew,emcrisostomo/homebrew,DoomHammer/linuxbrew,dickeyxxx/homebrew,MartinDelille/homebrew,jamer/homebrew,esamson/homebrew,iandennismiller/homebrew,influxdata/homebrew,davydden/linuxbrew,Asuranceturix/homebrew,mkrapp/homebrew,tsaeger/homebrew,cosmo0920/homebrew,hyuni/homebrew,keith/homebrew,3van/homebrew,marcwebbie/homebrew,redpen-cc/homebrew,ear/homebrew,dplarson/homebrew,scorphus/homebrew,princeofdarkness76/homebrew,dkotvan/homebrew,mactkg/homebrew,miketheman/homebrew,tjschuck/homebrew,codeout/homebrew,AGWA-forks/homebrew,emcrisostomo/homebrew,ebouaziz/linuxbrew,marcwebbie/homebrew,sometimesfood/homebrew,LinusU/homebrew,AlexejK/homebrew,dutchcoders/homebrew,mactkg/homebrew,scorphus/homebrew,theeternalsw0rd/homebrew,dkotvan/homebrew,codeout/homebrew,decors/homebrew,ablyler/homebrew,bigbes/homebrew,jarrettmeyer/homebrew,dickeyxxx/homebrew,reelsense/homebrew,getgauge/homebrew,reelsense/linuxbrew,ryanfb/homebrew,koraktor/homebrew,osimola/homebrew,elyscape/homebrew,lvicentesanchez/linuxbrew,ear/homebrew,keith/homebrew,utzig/homebrew,base10/homebrew,danabrand/linuxbrew,lvicentesanchez/linuxbrew,xcezx/homebrew,Habbie/homebrew,DoomHammer/linuxbrew,josa42/homebrew,koraktor/homebrew,tjschuck/homebrew,ilovezfs/homebrew,lmontrieux/homebrew,decors/homebrew,skatsuta/homebrew,mmizutani/homebrew,zchee/homebrew,Chilledheart/homebrew,AlexejK/homebrew,brunchboy/homebrew,zchee/homebrew,davydden/linuxbrew,deorth/homebrew,filcab/homebrew,elyscape/homebrew,dalanmiller/homebrew,haihappen/homebrew,ablyler/homebrew,tjschuck/homebrew,princeofdarkness76/homebrew,georgschoelly/homebrew,vigo/homebrew,davidcelis/homebrew,sferik/homebrew,ehamberg/homebrew,scpeters/homebrew,cosmo0920/homebrew,sferik/homebrew,georgschoelly/homebrew,yazuuchi/homebrew,elyscape/homebrew,iostat/homebrew2,codeout/homebrew,ralic/homebrew,nandub/homebrew,cscetbon/homebrew,royhodgman/homebrew,galaxy001/homebrew,saketkc/linuxbrew,eighthave/homebrew,jmagnusson/homebrew,dericed/homebrew,drewwells/homebrew,afh/homebrew,ybott/homebrew,ybott/homebrew,knpwrs/homebrew,slyphon/homebrew,Habbie/homebrew,booi/homebrew,gawbul/homebrew,youtux/homebrew,elyscape/homebrew,SuperNEMO-DBD/cadfaelbrew,ryanfb/homebrew,xcezx/homebrew,ebouaziz/linuxbrew,lvicentesanchez/homebrew,saketkc/linuxbrew,brunchboy/homebrew,iandennismiller/homebrew,esamson/homebrew,MartinDelille/homebrew,arnested/homebrew,dongcarl/homebrew,MoSal/homebrew,treyharris/homebrew,hakamadare/homebrew,hongkongkiwi/homebrew,booi/homebrew,hongkongkiwi/homebrew,scpeters/homebrew,patrickmckenna/homebrew,Linuxbrew/linuxbrew,davidcelis/homebrew,pdpi/homebrew,kodabb/homebrew,petere/homebrew,lvicentesanchez/linuxbrew,getgauge/homebrew,blogabe/homebrew,alebcay/homebrew,cscetbon/homebrew,ento/homebrew,influxdata/homebrew,hyuni/homebrew,ExtremeMan/homebrew,josa42/homebrew,scorphus/homebrew,yangj1e/homebrew,davydden/linuxbrew,johanhammar/homebrew,ybott/homebrew,lrascao/homebrew,ilovezfs/homebrew,blogabe/homebrew,Angeldude/linuxbrew,pdpi/homebrew,cosmo0920/homebrew,ge11232002/homebrew,dunn/homebrew,iandennismiller/homebrew,razamatan/homebrew,frodeaa/homebrew,nelstrom/homebrew,Gasol/homebrew,liamstask/homebrew,bigbes/homebrew,youtux/homebrew,megahall/homebrew,davidcelis/homebrew,mobileoverlord/homebrew-1,kodabb/homebrew,kenips/homebrew,kevinastone/homebrew,adamliter/homebrew,teslamint/homebrew,davidcelis/homebrew,iandennismiller/homebrew,yazuuchi/homebrew,sferik/homebrew,benjaminfrank/homebrew,arnested/homebrew,nelstrom/homebrew,cprecioso/homebrew,3van/homebrew,patrickmckenna/homebrew,ralic/homebrew,arnested/homebrew,reelsense/linuxbrew,georgschoelly/homebrew,utzig/homebrew,dericed/homebrew,pcottle/homebrew,treyharris/homebrew,gnubila-france/linuxbrew,MoSal/homebrew,Homebrew/linuxbrew,MoSal/homebrew,bigbes/homebrew,dickeyxxx/homebrew,polishgeeks/homebrew,menivaitsi/homebrew,blogabe/homebrew,afh/homebrew,tutumcloud/homebrew,tutumcloud/homebrew,sferik/homebrew,jab/homebrew,ehamberg/homebrew,jsjohnst/homebrew,BrewTestBot/homebrew,nandub/homebrew,lvicentesanchez/homebrew,sometimesfood/homebrew,slyphon/homebrew,gawbul/homebrew,filcab/homebrew,patrickmckenna/homebrew,teslamint/homebrew,hyuni/homebrew,zeha/homebrew,dkotvan/homebrew,zeha/homebrew,galaxy001/homebrew,jsjohnst/homebrew,haihappen/homebrew,chadcatlett/homebrew,tschoonj/homebrew,skatsuta/homebrew,MartinDelille/homebrew,muellermartin/homebrew,afh/homebrew,nelstrom/homebrew,geoff-codes/homebrew,reelsense/homebrew,zchee/homebrew,retrography/homebrew,megahall/homebrew,frickler01/homebrew,teslamint/homebrew,menivaitsi/homebrew,Asuranceturix/homebrew,sjackman/linuxbrew,hyuni/homebrew,felixonmars/homebrew,adamliter/homebrew,dickeyxxx/homebrew,Homebrew/homebrew,patrickmckenna/homebrew,polishgeeks/homebrew,elgertam/homebrew,mkrapp/homebrew,marcwebbie/homebrew,eighthave/homebrew,cosmo0920/homebrew,sometimesfood/homebrew,MartinDelille/homebrew,dericed/homebrew,ento/homebrew,gicmo/homebrew,Homebrew/homebrew,getgauge/homebrew,reelsense/linuxbrew,quantumsteve/homebrew,3van/homebrew,dgageot/homebrew,kodabb/homebrew,Gasol/homebrew,optikfluffel/homebrew,Homebrew/homebrew,keith/homebrew,apjanke/homebrew,ExtremeMan/homebrew,osimola/homebrew,tschoonj/homebrew,OJFord/homebrew,liamstask/homebrew,lvicentesanchez/homebrew,zeha/homebrew,jsjohnst/homebrew,danabrand/linuxbrew,xcezx/homebrew,sakra/homebrew,zhipeng-jia/homebrew,drewwells/homebrew,thinker0/homebrew,SteveClement/homebrew,danieroux/homebrew,megahall/homebrew,princeofdarkness76/homebrew,OJFord/homebrew,emcrisostomo/homebrew,feelpp/homebrew,AGWA-forks/homebrew,miketheman/homebrew,skinny-framework/homebrew,decors/homebrew,skatsuta/homebrew,zhipeng-jia/homebrew,jmagnusson/homebrew,ilovezfs/homebrew,pcottle/homebrew,dplarson/homebrew,recruit-tech/homebrew,pdxdan/homebrew,joshfriend/homebrew,theeternalsw0rd/homebrew,Gasol/homebrew,dkotvan/homebrew,scpeters/homebrew,drewwells/homebrew,lvicentesanchez/linuxbrew,apjanke/homebrew,Chilledheart/homebrew,slyphon/homebrew,Red54/homebrew,retrography/homebrew,arnested/homebrew,influxdata/homebrew,yazuuchi/homebrew,elgertam/homebrew,nelstrom/homebrew,hakamadare/homebrew,3van/homebrew,scpeters/homebrew,SteveClement/homebrew,skinny-framework/homebrew,hongkongkiwi/homebrew,drewwells/homebrew,iostat/homebrew2,DoomHammer/linuxbrew,dplarson/homebrew,dunn/homebrew,Homebrew/linuxbrew,mactkg/homebrew,jab/homebrew,optikfluffel/homebrew,Linuxbrew/linuxbrew,OJFord/homebrew,utzig/homebrew,joshfriend/homebrew,eighthave/homebrew,jiashuw/homebrew,zchee/homebrew,manphiz/homebrew,youtux/homebrew,base10/homebrew,apjanke/homebrew,geoff-codes/homebrew,hanxue/homebrew,Habbie/homebrew,tschoonj/homebrew,tjschuck/homebrew,cprecioso/homebrew,dongcarl/homebrew,retrography/homebrew,iostat/homebrew2,reelsense/linuxbrew,manphiz/homebrew,skinny-framework/homebrew,petere/homebrew,TaylorMonacelli/homebrew,filcab/homebrew,elgertam/homebrew,pdxdan/homebrew,haihappen/homebrew,jconley/homebrew,haihappen/homebrew,tsaeger/homebrew,Linuxbrew/linuxbrew,dalanmiller/homebrew,jconley/homebrew,jarrettmeyer/homebrew,MoSal/homebrew,cprecioso/homebrew,TaylorMonacelli/homebrew,jamer/homebrew,SteveClement/homebrew,mmizutani/homebrew,sakra/homebrew,dgageot/homebrew,kevinastone/homebrew,xcezx/homebrew,Asuranceturix/homebrew,dgageot/homebrew,ebouaziz/linuxbrew,jsjohnst/homebrew,Asuranceturix/homebrew,tsaeger/homebrew,recruit-tech/homebrew,pdpi/homebrew,Gasol/homebrew,codeout/homebrew,adamliter/homebrew,dgageot/homebrew,totalvoidness/homebrew,SuperNEMO-DBD/cadfaelbrew,danieroux/homebrew,pdpi/homebrew,jamer/homebrew,drbenmorgan/linuxbrew,davydden/linuxbrew,redpen-cc/homebrew,heinzf/homebrew,jmagnusson/homebrew,muellermartin/homebrew,nandub/homebrew,gnubila-france/linuxbrew,knpwrs/homebrew,scorphus/homebrew,royhodgman/homebrew,manphiz/homebrew,dunn/homebrew,base10/homebrew,tutumcloud/homebrew,michaKFromParis/homebrew-sparks,elgertam/homebrew,bukzor/linuxbrew,brunchboy/homebrew,michaKFromParis/homebrew-sparks,yangj1e/homebrew,thinker0/homebrew,quantumsteve/homebrew,BrewTestBot/homebrew,muellermartin/homebrew,teslamint/homebrew,feelpp/homebrew,deorth/homebrew,totalvoidness/homebrew,heinzf/homebrew,manphiz/homebrew,Habbie/homebrew,tutumcloud/homebrew,recruit-tech/homebrew,sometimesfood/homebrew,sakra/homebrew,Red54/homebrew,vigo/homebrew,dutchcoders/homebrew,cchacin/homebrew,felixonmars/homebrew,jconley/homebrew,thinker0/homebrew,jarrettmeyer/homebrew,danieroux/homebrew,redpen-cc/homebrew,polishgeeks/homebrew,georgschoelly/homebrew,redpen-cc/homebrew,DoomHammer/linuxbrew,chadcatlett/homebrew,theeternalsw0rd/homebrew,base10/homebrew,razamatan/homebrew,dongcarl/homebrew,cchacin/homebrew,AlexejK/homebrew,yangj1e/homebrew,sakra/homebrew,lvicentesanchez/homebrew,treyharris/homebrew,ExtremeMan/homebrew,influxdb/homebrew,mobileoverlord/homebrew-1,getgauge/homebrew,LinusU/homebrew,princeofdarkness76/homebrew,joshfriend/homebrew,knpwrs/homebrew,johanhammar/homebrew,drbenmorgan/linuxbrew,geoff-codes/homebrew,ehamberg/homebrew,mactkg/homebrew,frickler01/homebrew,liamstask/homebrew,utzig/homebrew,ybott/homebrew,mobileoverlord/homebrew-1,BrewTestBot/homebrew,Linuxbrew/linuxbrew,hanxue/homebrew,zeha/homebrew,nandub/homebrew,ilovezfs/homebrew,razamatan/homebrew,dutchcoders/homebrew,dunn/homebrew,cchacin/homebrew,menivaitsi/homebrew,tsaeger/homebrew,kenips/homebrew,gicmo/homebrew,joshua-rutherford/homebrew,gnubila-france/linuxbrew,ear/homebrew,zhipeng-jia/homebrew,afh/homebrew,benjaminfrank/homebrew,michaKFromParis/homebrew-sparks,miketheman/homebrew,alebcay/homebrew,AGWA-forks/homebrew,slyphon/homebrew,felixonmars/homebrew,Homebrew/linuxbrew,Red54/homebrew,miketheman/homebrew,lmontrieux/homebrew,cprecioso/homebrew,kevinastone/homebrew,ebouaziz/linuxbrew,danabrand/linuxbrew,frodeaa/homebrew,danieroux/homebrew,razamatan/homebrew,alebcay/homebrew,skatsuta/homebrew,ablyler/homebrew,feelpp/homebrew,adamliter/homebrew,chadcatlett/homebrew,Red54/homebrew,jarrettmeyer/homebrew,geoff-codes/homebrew,iostat/homebrew2,koraktor/homebrew,ge11232002/homebrew,blogabe/homebrew,influxdb/homebrew,eighthave/homebrew,lrascao/homebrew,heinzf/homebrew,ablyler/homebrew,TaylorMonacelli/homebrew,youtux/homebrew,yumitsu/homebrew,esamson/homebrew,cchacin/homebrew,saketkc/linuxbrew,frickler01/homebrew,optikfluffel/homebrew,theeternalsw0rd/homebrew,SuperNEMO-DBD/cadfaelbrew,emcrisostomo/homebrew,SuperNEMO-DBD/cadfaelbrew,hongkongkiwi/homebrew,Chilledheart/homebrew,quantumsteve/homebrew,marcwebbie/homebrew,kenips/homebrew,booi/homebrew,sjackman/linuxbrew,influxdata/homebrew,yangj1e/homebrew,AGWA-forks/homebrew,filcab/homebrew,megahall/homebrew,jconley/homebrew,retrography/homebrew,sjackman/linuxbrew,ge11232002/homebrew,benjaminfrank/homebrew,zhipeng-jia/homebrew,keith/homebrew,royhodgman/homebrew,petere/homebrew,brunchboy/homebrew,recruit-tech/homebrew,vigo/homebrew,SteveClement/homebrew,gnubila-france/linuxbrew,LinusU/homebrew,dalanmiller/homebrew,reelsense/homebrew,lmontrieux/homebrew,bukzor/linuxbrew,jab/homebrew,hakamadare/homebrew,Homebrew/linuxbrew,Asuranceturix/homebrew,BrewTestBot/homebrew,yumitsu/homebrew,thinker0/homebrew,polishgeeks/homebrew,gicmo/homebrew,vigo/homebrew,joshua-rutherford/homebrew,TaylorMonacelli/homebrew,osimola/homebrew,lmontrieux/homebrew,dplarson/homebrew,petere/homebrew,frodeaa/homebrew