mirror of https://github.com/vector-im/riot-web
Remove useless spread operator
parent
d2de9b432c
commit
e3e7d945fd
|
@ -59,11 +59,11 @@ export default class TagComposer extends React.PureComponent<IProps, IState> {
|
|||
this.setState({ newTag: "" });
|
||||
};
|
||||
|
||||
private onRemove = (tag: string) => {
|
||||
private onRemove(tag: string) {
|
||||
// We probably don't need to proxy this, but for
|
||||
// sanity of `this` we'll do so anyways.
|
||||
this.props.onRemove(tag);
|
||||
};
|
||||
}
|
||||
|
||||
public render() {
|
||||
return <div className='mx_TagComposer'>
|
||||
|
|
|
@ -240,12 +240,12 @@ export default class Notifications extends React.PureComponent<IProps, IState> {
|
|||
return preparedNewState;
|
||||
}
|
||||
|
||||
private async refreshPushers(): Promise<Partial<IState>> {
|
||||
return { ...(await MatrixClientPeg.get().getPushers()) };
|
||||
private refreshPushers(): Promise<Partial<IState>> {
|
||||
return MatrixClientPeg.get().getPushers();
|
||||
}
|
||||
|
||||
private async refreshThreepids(): Promise<Partial<IState>> {
|
||||
return { ...(await MatrixClientPeg.get().getThreePids()) };
|
||||
private refreshThreepids(): Promise<Partial<IState>> {
|
||||
return MatrixClientPeg.get().getThreePids();
|
||||
}
|
||||
|
||||
private showSaveError() {
|
||||
|
|
Loading…
Reference in New Issue