remove redundant typecheck

This commit is contained in:
ajvpot
2025-07-28 00:00:00 +00:00
parent 73d412ca50
commit 0e483fec16
+1 -1
View File
@@ -19,7 +19,7 @@ export function getColourForName(name: string, saturation: number = 60, lightnes
}
export function getNameIconLabel(name: string): string {
if (typeof name !== 'string' || name.length === 0) {
if (name.length === 0) {
return ''
}