mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-01-15 23:59:08 +00:00
chore: linting fixes && github actions for linting (#612)
This commit is contained in:
@@ -3,5 +3,5 @@
|
||||
*/
|
||||
export const tc = (text: string | null | undefined, length = 20) => {
|
||||
if (!text) return "";
|
||||
return text.length > length ? text.substr(0, length) + "..." : text;
|
||||
return text.length > length ? `${text.substr(0, length)}...` : text;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user