mirror of
https://github.com/octoleo/restic.git
synced 2024-11-16 18:15:20 +00:00
Fix loading config on sftp backend
This commit is contained in:
parent
3517229844
commit
4e5094b7c9
@ -323,10 +323,6 @@ func (r *SFTP) dirname(t backend.Type, name string) string {
|
||||
// Get returns a reader that yields the content stored under the given
|
||||
// name. The reader should be closed after draining it.
|
||||
func (r *SFTP) Get(t backend.Type, name string) (io.ReadCloser, error) {
|
||||
if name == "" {
|
||||
return nil, errors.New("unable to load empty name")
|
||||
}
|
||||
|
||||
// try to open file
|
||||
file, err := r.c.Open(r.filename(t, name))
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user