diff options
author | 2021-09-30 11:16:23 +0200 | |
---|---|---|
committer | 2021-09-30 11:16:23 +0200 | |
commit | 231075f28df55bfb622f54859f858528445cae0c (patch) | |
tree | ffdc27f31646d10e35902087fa6c703bc49bfc82 /internal/web/fileserver.go | |
parent | handle remote account deletion more systematically (#254) (diff) | |
download | gotosocial-231075f28df55bfb622f54859f858528445cae0c.tar.xz |
Golint (#255)
Diffstat (limited to 'internal/web/fileserver.go')
-rw-r--r-- | internal/web/fileserver.go | 4 |
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 |