You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
Remove useless spread operator
This commit is contained in:
@@ -59,11 +59,11 @@ export default class TagComposer extends React.PureComponent<IProps, IState> {
|
|||||||
this.setState({ newTag: "" });
|
this.setState({ newTag: "" });
|
||||||
};
|
};
|
||||||
|
|
||||||
private onRemove = (tag: string) => {
|
private onRemove(tag: string) {
|
||||||
// We probably don't need to proxy this, but for
|
// We probably don't need to proxy this, but for
|
||||||
// sanity of `this` we'll do so anyways.
|
// sanity of `this` we'll do so anyways.
|
||||||
this.props.onRemove(tag);
|
this.props.onRemove(tag);
|
||||||
};
|
}
|
||||||
|
|
||||||
public render() {
|
public render() {
|
||||||
return <div className='mx_TagComposer'>
|
return <div className='mx_TagComposer'>
|
||||||
|
|||||||
@@ -240,12 +240,12 @@ export default class Notifications extends React.PureComponent<IProps, IState> {
|
|||||||
return preparedNewState;
|
return preparedNewState;
|
||||||
}
|
}
|
||||||
|
|
||||||
private async refreshPushers(): Promise<Partial<IState>> {
|
private refreshPushers(): Promise<Partial<IState>> {
|
||||||
return { ...(await MatrixClientPeg.get().getPushers()) };
|
return MatrixClientPeg.get().getPushers();
|
||||||
}
|
}
|
||||||
|
|
||||||
private async refreshThreepids(): Promise<Partial<IState>> {
|
private refreshThreepids(): Promise<Partial<IState>> {
|
||||||
return { ...(await MatrixClientPeg.get().getThreePids()) };
|
return MatrixClientPeg.get().getThreePids();
|
||||||
}
|
}
|
||||||
|
|
||||||
private showSaveError() {
|
private showSaveError() {
|
||||||
|
|||||||
Reference in New Issue
Block a user