Skip to content

Commit

Permalink
Ignore any errors for updating workdir for catch-all case
Browse files Browse the repository at this point in the history
Signed-off-by: Rohit Nayak <[email protected]>
  • Loading branch information
rohit-nayak-ps committed Dec 15, 2024
1 parent 76e5f1f commit 0314d7b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions go/cmd/internal/docgen/docgen.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,12 +171,7 @@ func restructure(rootDir string, dir string, name string, commands []*cobra.Comm
continue
}
f := filepath.Join(dir, fullCmdFilename+".md")
if _, err := os.Stat(f); err != nil {
continue
}
if err := anonymizeHomedir(f); err != nil {
return fmt.Errorf("failed to anonymize homedir in help text for command %s: %w", f, err)
}
_ = anonymizeHomedir(f) // it is possible that the file does not exist, so we ignore the error
continue
}
}
Expand Down

0 comments on commit 0314d7b

Please sign in to comment.