Files: bugfix

GitOrigin-RevId: 179f1b4864e78337455264c3468ec5d4eabdeb2d
This commit is contained in:
Arseny Smirnov 2018-05-30 22:21:40 +03:00
parent faf9be4231
commit b38094e372

View File

@ -123,7 +123,6 @@ Result<FileLoader::PrefixInfo> FileUploader::on_update_local_location(const Loca
TRY_RESULT(hash, secure_storage::encrypt_file(encryption_key_.secret(), path, new_path));
LOG(INFO) << "ENCRYPT " << path << " " << new_path;
callback_->on_hash(hash.as_slice().str());
unlink(path).ignore();
path = new_path;
is_temp = true;
}