Eslint tweaks (#696)
* make eslint styleguide into warnings & drop no-else-return * reintroduce max-warnings=0 * remove unnecessary eslint line disable * reintroduce no-else-return rule
This commit is contained in:
@ -62,10 +62,8 @@ export function parseClipboardEvent(
|
||||
const text = e.clipboardData?.getData("text/plain").trim();
|
||||
if (text && !PREFER_APP_CLIPBOARD) {
|
||||
return { text };
|
||||
// eslint-disable-next-line no-else-return
|
||||
} else {
|
||||
return getAppClipboard();
|
||||
}
|
||||
return getAppClipboard();
|
||||
} catch (e) {}
|
||||
|
||||
return {};
|
||||
|
Reference in New Issue
Block a user