FileManager: bugfix - delete empty file reference

GitOrigin-RevId: 60480b877c828b1adcabd9dce9e2f6b8df72646a
This commit is contained in:
Arseny Smirnov 2019-01-22 18:34:10 +04:00
parent faebe9faea
commit 0697962c3c

View File

@ -403,7 +403,7 @@ class FullRemoteFileLocation {
return "#";
}
bool delete_file_reference(Slice bad_file_reference) {
if (file_reference_.empty()) {
if (file_reference_ == invalid_file_reference()) {
return false;
}
if (file_reference_ != bad_file_reference) {