From 612bc35d7d2515407fa33e28c9653f8052398a91 Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Fri, 25 Sep 2026 07:43:44 +0000 Subject: [PATCH] Resolve typescript `consistent-return` JS lint warnings (#40689) --- app/javascript/mastodon/features/ui/index.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/javascript/mastodon/features/ui/index.jsx b/app/javascript/mastodon/features/ui/index.jsx index 75f84049128..035ad0a0ec0 100644 --- a/app/javascript/mastodon/features/ui/index.jsx +++ b/app/javascript/mastodon/features/ui/index.jsx @@ -351,7 +351,7 @@ class UI extends PureComponent { if (!this.props.isUploadEnabled) { return; } - if (this.dataTransferIsText(e.dataTransfer)) return false; + if (this.dataTransferIsText(e.dataTransfer)) return; e.preventDefault(); e.stopPropagation(); @@ -362,7 +362,7 @@ class UI extends PureComponent { // do nothing } - return false; + return; }; handleDrop = (e) => {