aboutsummaryrefslogtreecommitdiff
path: root/src/net/http/example_filesystem_test.go
diff options
context:
space:
mode:
authorcuishuang <imcusg@gmail.com>2025-02-15 11:22:16 +0800
committerGopher Robot <gobot@golang.org>2025-02-18 09:28:50 -0800
commit0bdc792145acaf10c5f7bac1783a6692fb327dfb (patch)
treeac2fda262e8498de31ff4396983d966e960280f6 /src/net/http/example_filesystem_test.go
parenta3d11d280d10a3213f70d04379d5e1be882debb2 (diff)
downloadgo-0bdc792145acaf10c5f7bac1783a6692fb327dfb.tar.xz
all: use a more straightforward return value
Change-Id: I27e86c221da7f541c4823f501801e02942c9a829 Reviewed-on: https://go-review.googlesource.com/c/go/+/649935 Auto-Submit: Ian Lance Taylor <iant@google.com> Reviewed-by: Michael Knyszek <mknyszek@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'src/net/http/example_filesystem_test.go')
-rw-r--r--src/net/http/example_filesystem_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/http/example_filesystem_test.go b/src/net/http/example_filesystem_test.go
index ebcb994f43..da1f0df890 100644
--- a/src/net/http/example_filesystem_test.go
+++ b/src/net/http/example_filesystem_test.go
@@ -65,7 +65,7 @@ func (fsys dotFileHidingFileSystem) Open(name string) (http.File, error) {
if err != nil {
return nil, err
}
- return dotFileHidingFile{file}, err
+ return dotFileHidingFile{file}, nil
}
func ExampleFileServer_dotFileHiding() {