mirror of https://github.com/zulip/zulip.git
eslint: Fix unicorn/prefer-trim-start-end.
https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-trim-start-end.md Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
78ccb15d9e
commit
8098acb63c
|
@ -34,7 +34,7 @@ function get_or_set(fieldname, keep_leading_whitespace) {
|
|||
if (newval !== undefined) {
|
||||
elem.val(newval);
|
||||
}
|
||||
return keep_leading_whitespace ? oldval.trimRight() : oldval.trim();
|
||||
return keep_leading_whitespace ? oldval.trimEnd() : oldval.trim();
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -178,7 +178,7 @@ export function process_fenced_code(content) {
|
|||
if (line === fence) {
|
||||
this.done();
|
||||
} else {
|
||||
lines.push(line.trimRight());
|
||||
lines.push(line.trimEnd());
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue