Fix loading config on sftp backend

This commit is contained in:
Alexander Neumann 2015-05-14 18:08:45 +02:00
parent 3517229844
commit 4e5094b7c9
1 changed files with 0 additions and 4 deletions

View File

@ -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 {