code refactor

This commit is contained in:
MaysWind
2025-01-12 13:15:10 +08:00
parent f2ebd751d4
commit 6a62cfdef7
9 changed files with 39 additions and 39 deletions
+1 -1
View File
@@ -70,7 +70,7 @@ export class AccountCategory implements TypeAndName {
return AccountCategory.allInstances;
}
public static valueOf(type: number): AccountCategory {
public static valueOf(type: number): AccountCategory | undefined {
return AccountCategory.allInstancesByType[type];
}
}