🧹: gofmt

This commit is contained in:
Henrique Dias committed 2019-01-05 23:01:16 +00:00
1 parent d309066def
commit 92fda0070c
12 files changed
+22 -23

No files matched your search

+5 -5
View File
@@ -1,9 +1,9 @@
package bolt
import (
"github.com/filebrowser/filebrowser/v2/settings"
"github.com/asdine/storm"
"github.com/filebrowser/filebrowser/v2/auth"
"github.com/filebrowser/filebrowser/v2/settings"
"github.com/filebrowser/filebrowser/v2/share"
"github.com/filebrowser/filebrowser/v2/storage"
"github.com/filebrowser/filebrowser/v2/users"
@@ -13,13 +13,13 @@ import (
func NewStorage(db *storm.DB) *storage.Storage {
users := users.NewStorage(usersBackend{db: db})
share := share.NewStorage(shareBackend{db: db})
settings := settings.NewStorage(settingsBackend{ db: db})
settings := settings.NewStorage(settingsBackend{db: db})
auth := auth.NewStorage(authBackend{db: db}, users)
return &storage.Storage{
Auth: auth,
Users: users,
Share: share,
Auth: auth,
Users: users,
Share: share,
Settings: settings,
}
}
+1 -1
View File
@@ -27,7 +27,7 @@ func (s shareBackend) GetPermanent(path string, id uint) (*share.Link, error) {
if err == storm.ErrNotFound {
return nil, errors.ErrNotExist
}
return &v, err
}
+3 -3
View File
@@ -10,8 +10,8 @@ import (
// Storage is a storage powered by a Backend whih makes the neccessary
// verifications when fetching and saving data to ensure consistency.
type Storage struct {
Users *users.Storage
Share *share.Storage
Auth *auth.Storage
Users *users.Storage
Share *share.Storage
Auth *auth.Storage
Settings *settings.Storage
}