Conform more code to strictNullChecks
(#10444
* Conform more code to `strictNullChecks` * Fix tests * Fix tests
This commit is contained in:
parent
ba2608ec74
commit
c225b8ec29
29 changed files with 85 additions and 75 deletions
|
@ -15,7 +15,6 @@ limitations under the License.
|
|||
*/
|
||||
|
||||
import React from "react";
|
||||
import { Optional } from "matrix-events-sdk";
|
||||
|
||||
import { _t } from "../languageHandler";
|
||||
import SdkConfig from "../SdkConfig";
|
||||
|
@ -75,7 +74,7 @@ const onLearnMorePreviouslyOptedIn = (): void => {
|
|||
|
||||
const TOAST_KEY = "analytics";
|
||||
|
||||
export function getPolicyUrl(): Optional<string> {
|
||||
export function getPolicyUrl(): string | undefined {
|
||||
return SdkConfig.get("privacy_policy_url");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue