Make sonar happier (#9114)

* Make sonar happier

* Rename method
This commit is contained in:
Michael Telatynski 2022-07-29 12:01:15 +01:00 committed by GitHub
parent 6a8dd23d29
commit 45f6c32eb6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 17 additions and 23 deletions

View file

@ -24,7 +24,7 @@ export function getDefaultIdentityServerUrl(): string {
return SdkConfig.get("validated_server_config").isUrl;
}
export function useDefaultIdentityServer(): void {
export function setToDefaultIdentityServer(): void {
const url = getDefaultIdentityServerUrl();
// Account data change will update localstorage, client, etc through dispatcher
MatrixClientPeg.get().setAccountData("m.identity_server", {