Lints some errors and warnings (#76)
This commit is contained in:
+3
-1
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user