chore: upgrade lexical & make linting/formatting consistent with web codebase (#2144)

This commit is contained in:
Aman Harwara
2023-01-11 14:34:14 +05:30
committed by GitHub
parent 573538031e
commit c24be606ad
76 changed files with 2404 additions and 3203 deletions

View File

@@ -1,7 +1,7 @@
export function truncateString(string: string, limit: number) {
if (string.length <= limit) {
return string;
return string
} else {
return string.substring(0, limit) + '...';
return string.substring(0, limit) + '...'
}
}