diff --git a/cmd/autoowners/main.go b/cmd/autoowners/main.go index 025a3f0638e..3464eb0d172 100644 --- a/cmd/autoowners/main.go +++ b/cmd/autoowners/main.go @@ -186,7 +186,7 @@ func getOwnersHTTP(fg FileGetter, orgRepo orgRepo, filenames ownersconfig.Filena if _, nf := err.(*github.FileNotFound); nf { logrus.WithField("orgRepo", orgRepo.repoString()).WithField("filename", filename). Debug("Not found file in the upstream repo") - continue + break } return httpResult, err } diff --git a/cmd/autoowners/main_test.go b/cmd/autoowners/main_test.go index dc9704d5045..5c5e8ec82ff 100644 --- a/cmd/autoowners/main_test.go +++ b/cmd/autoowners/main_test.go @@ -367,10 +367,8 @@ aliases: Organization: "org4", Repository: "repo4", }, - expectedHTTPResult: httpResult{ - repoAliases: ra, - }, - expectedError: nil, + expectedHTTPResult: httpResult{}, + expectedError: nil, }, { description: "owner is with normal error",