Skip to content

Commit

Permalink
remove logging prints
Browse files Browse the repository at this point in the history
  • Loading branch information
zeucapua committed Sep 25, 2024
1 parent 1661bad commit bf119b9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cmd/offboard/output.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,10 @@ func generateOwnersFile(path string, offboardingUsers []string) error {
var ownersPath string

if _, err = os.Stat(filepath.Join(path, "/CODEOWNERS")); !errors.Is(err, os.ErrNotExist) {
fmt.Print("CODEOWNERS EXISTS")
outputType = "CODEOWNERS"
ownersPath = filepath.Join(path, "/CODEOWNERS")
owners, err = os.ReadFile(ownersPath)
} else if _, err = os.Stat(filepath.Join(path, "OWNERS")); !errors.Is(err, os.ErrNotExist) {
fmt.Print("OWNERS EXISTS")
outputType = "OWNERS"
ownersPath = filepath.Join(path, "/OWNERS")
owners, err = os.ReadFile(ownersPath)
Expand Down

0 comments on commit bf119b9

Please sign in to comment.