remove useless try/catch
This commit is contained in:
parent
efb091fead
commit
b3d5542a10
1 changed files with 35 additions and 39 deletions
|
@ -9,7 +9,6 @@ const denoCore: DenoCore = Deno[Deno.internal].core;
|
|||
export default function EmojiPicker(props: { text: string }): ReactNode | undefined {
|
||||
const text = props.text;
|
||||
|
||||
try {
|
||||
if (text.length < 3) {
|
||||
return undefined
|
||||
};
|
||||
|
@ -46,8 +45,5 @@ export default function EmojiPicker(props: { text: string }): ReactNode | undefi
|
|||
</Content.H3>
|
||||
</Inline.Right>
|
||||
</Inline>
|
||||
)
|
||||
} catch (e) {
|
||||
return undefined
|
||||
};
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue