mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-15 11:53:01 -06:00
Golint (#255)
This commit is contained in:
parent
36a09dd0df
commit
231075f28d
7 changed files with 21 additions and 40 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue