added symmetric assert (that will probably run first)

This commit is contained in:
Igor Klopov 2018-06-18 01:06:54 +03:00
parent 1eff81ca81
commit 74347211e6

View File

@ -30,6 +30,7 @@ export class Cloud {
async alreadyUploaded (remote) {
const release = await this._findRelease(remote.tag);
return release.assets.some(({ name }) => {
assert(name);
return remote.name === name;
});
}