mirror of
https://github.com/jkl1337/duplicacy.git
synced 2026-01-05 05:04:42 -06:00
readCloser may be nil if the file to be searched doesn't exist
This commit is contained in:
@@ -335,7 +335,9 @@ func (client *B2Client) ListFileNames(startFileName string, singleFile bool, inc
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
defer readCloser.Close()
|
if readCloser != nil {
|
||||||
|
defer readCloser.Close()
|
||||||
|
}
|
||||||
|
|
||||||
output := B2ListFileNamesOutput{}
|
output := B2ListFileNamesOutput{}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user