You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
don't need null guard
This commit is contained in:
@@ -201,7 +201,7 @@ module.exports = React.createClass({
|
|||||||
if (textarea.value.length) {
|
if (textarea.value.length) {
|
||||||
var left = textarea.value.substring(0, textarea.selectionStart);
|
var left = textarea.value.substring(0, textarea.selectionStart);
|
||||||
var right = textarea.value.substring(textarea.selectionEnd);
|
var right = textarea.value.substring(textarea.selectionEnd);
|
||||||
if (right && right.length) {
|
if (right.length) {
|
||||||
left += payload.displayname;
|
left += payload.displayname;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user