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:
Anders Kaseorg
2020-10-07 00:41:22 -07:00
committed by Tim Abbott
parent fb233bd994
commit 48f5e5179a
16 changed files with 57 additions and 65 deletions

View File

@@ -358,7 +358,7 @@ function process_notification(notification) {
break;
}
}
content = content.substring(0, i);
content = content.slice(0, i);
content += " [...]";
}