Remove unnecessary non-null assertion

This commit is contained in:
Evan Hahn 2020-09-28 18:29:33 -05:00 committed by Josh Perez
parent bf647b36d4
commit bb3ab816dd

View file

@ -1831,8 +1831,7 @@ export class ConversationModel extends window.Backbone.Model<
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
const destination = this.getSendTarget()!; const destination = this.getSendTarget()!;
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion const recipients = this.getRecipients();
const recipients = this.getRecipients()!;
let profileKey: ArrayBuffer | undefined; let profileKey: ArrayBuffer | undefined;
if (this.get('profileSharing')) { if (this.get('profileSharing')) {