Commit db492b8d authored by Brad Fitzpatrick's avatar Brad Fitzpatrick

os: add a comment inside RemoveAll

LGTM=r
R=r
CC=golang-codereviews
https://golang.org/cl/149950043
parent 82ddcc05
......@@ -87,6 +87,8 @@ func RemoveAll(path string) error {
fd, err := Open(path)
if err != nil {
if IsNotExist(err) {
// Race. It was deleted between the Lstat and Open.
// Return nil per RemoveAll's docs.
return nil
}
return err
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment