Lints some errors and warnings (#76)

This commit is contained in:
Aryan Goharzad
2023-01-20 14:43:28 -05:00
committed by GitHub
parent 19c9ffa352
commit b0d367a3b8
22 changed files with 62 additions and 38 deletions
+3 -1
View File
@@ -199,7 +199,9 @@ export function enforceLen(str: string, len: number): string {
}
export function cleanError(str: any): string {
if (!str) return str
if (!str) {
return str
}
if (typeof str !== 'string') {
str = str.toString()
}