refactor: change null to undefined

This commit is contained in:
2026-02-04 12:50:38 +05:00
parent 2797fea079
commit dfa6c40743
21 changed files with 89 additions and 112 deletions
+3 -3
View File
@@ -4,7 +4,7 @@ import { setLoading } from "../stores/uiStore";
export class ExportService {
private static instance: ExportService;
private errorMessage: string | null = null;
private errorMessage: string | undefined = undefined;
private constructor() {}
@@ -15,11 +15,11 @@ export class ExportService {
return ExportService.instance;
}
getErrorMessage(): string | null {
getErrorMessage(): string | undefined {
return this.errorMessage;
}
setErrorMessage(message: string | null): void {
setErrorMessage(message: string | undefined): void {
this.errorMessage = message;
}