mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-04-13 12:31:57 +01: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