aboutsummaryrefslogtreecommitdiff
path: root/src/path/filepath
diff options
context:
space:
mode:
Diffstat (limited to 'src/path/filepath')
-rw-r--r--src/path/filepath/match.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/path/filepath/match.go b/src/path/filepath/match.go
index 46badb5e84..20a334805b 100644
--- a/src/path/filepath/match.go
+++ b/src/path/filepath/match.go
@@ -310,14 +310,14 @@ func glob(dir, pattern string, matches []string) (m []string, e error) {
m = matches
fi, err := os.Stat(dir)
if err != nil {
- return
+ return // ignore I/O error
}
if !fi.IsDir() {
- return
+ return // ignore I/O error
}
d, err := os.Open(dir)
if err != nil {
- return
+ return // ignore I/O error
}
defer d.Close()