Skip to content

Commit afefed0

Browse files
committed
prettier
1 parent 7cd7c31 commit afefed0

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/exports/elements/tip-tap-editor-base.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,6 @@ export class TipTapEditorBase extends BaseElement {
397397
this.__addPendingAttachment = this.__addPendingAttachment.bind(this);
398398
this.__removePendingAttachment = this.__removePendingAttachment.bind(this);
399399

400-
401400
this.registerDependencies();
402401
this.addEventListener(AddAttachmentEvent.eventName, this.handleAttachment);
403402

@@ -426,13 +425,15 @@ export class TipTapEditorBase extends BaseElement {
426425
this.pendingAttachments.push(e.attachmentUpload);
427426
}
428427

429-
430428
/**
431429
* @private
432430
*/
433-
__removePendingAttachment(e: { attachment: AttachmentManager } | { attachmentUpload: AttachmentUpload }) {
431+
__removePendingAttachment(
432+
e:
433+
| { attachment: AttachmentManager }
434+
| { attachmentUpload: AttachmentUpload },
435+
) {
434436
const index = this.pendingAttachments.findIndex((attachment) => {
435-
436437
// This is what you get from an attachment upload finishing.
437438
if ("attachmentUpload" in e) {
438439
return attachment === e.attachmentUpload;
@@ -443,7 +444,7 @@ export class TipTapEditorBase extends BaseElement {
443444
return attachment.attachment.attachmentId === e.attachment.attachmentId;
444445
}
445446

446-
return false
447+
return false;
447448
});
448449

449450
if (index > -1) {

0 commit comments

Comments
 (0)