summaryrefslogtreecommitdiff
path: root/internal/web/fileserver.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2021-09-30 11:16:23 +0200
committerLibravatar GitHub <noreply@github.com>2021-09-30 11:16:23 +0200
commit231075f28df55bfb622f54859f858528445cae0c (patch)
treeffdc27f31646d10e35902087fa6c703bc49bfc82 /internal/web/fileserver.go
parenthandle remote account deletion more systematically (#254) (diff)
downloadgotosocial-231075f28df55bfb622f54859f858528445cae0c.tar.xz
Golint (#255)
Diffstat (limited to 'internal/web/fileserver.go')
-rw-r--r--internal/web/fileserver.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/web/fileserver.go b/internal/web/fileserver.go
index 247bf0dc8..b9a1a10fa 100644
--- a/internal/web/fileserver.go
+++ b/internal/web/fileserver.go
@@ -23,13 +23,13 @@ import (
"strings"
)
-type FileSystem struct {
+type fileSystem struct {
fs http.FileSystem
}
// FileSystem server that only accepts directory listings when an index.html is available
// from https://gist.github.com/hauxe/f2ea1901216177ccf9550a1b8bd59178
-func (fs FileSystem) Open(path string) (http.File, error) {
+func (fs fileSystem) Open(path string) (http.File, error) {
f, err := fs.fs.Open(path)
if err != nil {
return nil, err