1
0
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:
Gilbert Chen
2017-10-05 22:22:55 -04:00
parent 32d0f97bfb
commit 2f6287a45d

View File

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