mirror of
https://github.com/restic/restic.git
synced 2026-10-11 12:37:13 +00:00
Remove Repository.Test()
This commit is contained in:
1 parent
6e38a8a033
commit
eb6dfcf58c
4 files changed
+4
-8
No files matched your search
@@ -580,7 +580,7 @@ func (s *Repository) SearchKey(password string) error {
|
||||
// Init creates a new master key with the supplied password and initializes the
|
||||
// repository config.
|
||||
func (s *Repository) Init(password string) error {
|
||||
has, err := s.Test(backend.Config, "")
|
||||
has, err := s.be.Test(backend.Config, "")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
@@ -676,10 +676,6 @@ func (s *Repository) List(t backend.Type, done <-chan struct{}) <-chan backend.I
|
||||
return outCh
|
||||
}
|
||||
|
||||
func (s *Repository) Test(t backend.Type, name string) (bool, error) {
|
||||
return s.be.Test(t, name)
|
||||
}
|
||||
|
||||
func (s *Repository) Remove(t backend.Type, name string) error {
|
||||
return s.be.Remove(t, name)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user