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:
parent
a5bb5852fa
commit
86b3dd162a
@ -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() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user