Remove useless spread operator
This commit is contained in:
parent
d2de9b432c
commit
e3e7d945fd
2 changed files with 6 additions and 6 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue