1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-29 22:48:10 +02:00

Tools: Add eslint rule "no-unneeded-ternary"

This commit is contained in:
Laurent Cozic
2023-02-21 17:10:53 +00:00
parent 08c9a25182
commit 9e73d3590b
4 changed files with 15 additions and 14 deletions

View File

@@ -236,7 +236,7 @@ shared.initState = async function(comp: any) {
mode: mode,
folder: folder,
isLoading: false,
fromShare: comp.props.sharedData ? true : false,
fromShare: !!comp.props.sharedData,
noteResources: await shared.attachedResources(note ? note.body : ''),
});