Because you dont use neither $repo nor $defaultRepos along this lines, you can just merge this the lines with the upper if