Skip to content

Commit

Permalink
Ignore missing files for sed check
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 6348cdd commit 76e5f1f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions go/cmd/internal/docgen/docgen.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,9 @@ func anonymizeHomedir(file string) (err error) {
if err != nil {
return err
}
if _, err := os.Stat(file); err != nil {
return nil
}

// We're replacing the stuff inside the square brackets in the example sed
// below:
Expand Down

0 comments on commit 76e5f1f

Please sign in to comment.