mirror of
https://github.com/gilbertchen/duplicacy
synced 2025-12-06 00:03:38 +00: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
|
||||
}
|
||||
|
||||
defer readCloser.Close()
|
||||
if readCloser != nil {
|
||||
defer readCloser.Close()
|
||||
}
|
||||
|
||||
output := B2ListFileNamesOutput{}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user