refactor: cleanup package names (#5605)

This commit is contained in:
Henrique Dias
2025-12-06 10:52:11 +01:00
committed by GitHub
parent a6934e40ff
commit f029c3005e
33 changed files with 78 additions and 78 deletions

View File

@@ -4,7 +4,7 @@ import (
"sync"
"time"
"github.com/filebrowser/filebrowser/v2/errors"
fberrors "github.com/filebrowser/filebrowser/v2/errors"
)
// StorageBackend is the interface to implement for a users storage.
@@ -109,16 +109,16 @@ func (s *Storage) Delete(id interface{}) error {
return err
}
if user.ID == 1 {
return errors.ErrRootUserDeletion
return fberrors.ErrRootUserDeletion
}
return s.back.DeleteByUsername(id)
case uint:
if id == 1 {
return errors.ErrRootUserDeletion
return fberrors.ErrRootUserDeletion
}
return s.back.DeleteByID(id)
default:
return errors.ErrInvalidDataType
return fberrors.ErrInvalidDataType
}
}