mirror of
https://github.com/hcengineering/platform.git
synced 2026-08-17 18:05:42 +02:00
Fix formatting
This commit is contained in:
@@ -1004,7 +1004,7 @@ export type KeysByType<O extends object, T> = { [k in keyof O]-?: O[k] extends T
|
||||
export function toRank (str: string | undefined): Rank | undefined {
|
||||
if (str === undefined) return
|
||||
if (str.startsWith('0|')) {
|
||||
return str as Rank
|
||||
return str
|
||||
}
|
||||
return '0|' + str
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user