1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Prefer return type over casting

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
Janne Savolainen 2021-11-17 16:50:33 +02:00
parent a5bb5852fa
commit 86b3dd162a

View File

@ -70,8 +70,8 @@ export class Dialog extends React.PureComponent<DialogProps, DialogState> {
isOpen: this.props.isOpen,
};
get elem() {
return this.ref.current as HTMLElement;
get elem(): HTMLElement {
return this.ref.current;
}
get isOpen() {