mirror of
https://github.com/zulip/zulip.git
synced 2025-10-30 19:43:47 +00:00
eslint: Fix unicorn/prefer-string-slice.
https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-string-slice.md Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
fb233bd994
commit
48f5e5179a
@@ -358,7 +358,7 @@ function process_notification(notification) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
content = content.substring(0, i);
|
||||
content = content.slice(0, i);
|
||||
content += " [...]";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user