mirror of
https://github.com/ajvpot/meshexplorer.git
synced 2026-08-07 00:52:45 +02:00
remove redundant typecheck
This commit is contained in:
@@ -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 ''
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user