Fix more lint errors

Signed-off-by: Aaron Raimist <aaron@raim.ist>
pull/21833/head
Aaron Raimist 2018-10-11 21:54:53 -05:00
parent a2944c9faa
commit 58488c076e
No known key found for this signature in database
GPG Key ID: 37419210002890EF
2 changed files with 6 additions and 6 deletions

View File

@ -56,12 +56,12 @@ class ScalarAuthClient {
// Something went wrong - try to get a new token.
console.warn("Registering for new scalar token");
return this.registerForToken();
})
});
}
}
validateToken(token) {
let url = SdkConfig.get().integrations_rest_url + "/account";
const url = SdkConfig.get().integrations_rest_url + "/account";
return new Promise(function(resolve, reject) {
request({
@ -80,7 +80,7 @@ class ScalarAuthClient {
resolve(body.user_id);
}
});
})
});
}
registerForToken() {
@ -114,7 +114,7 @@ class ScalarAuthClient {
resolve(body.scalar_token);
}
});
})
});
}
getScalarPageTitle(url) {
@ -142,7 +142,7 @@ class ScalarAuthClient {
resolve(title);
}
});
})
});
}
/**

View File

@ -96,7 +96,7 @@ export default React.createClass({
render() {
const EmojiText = sdk.getComponent('elements.EmojiText');
const {mxEvent} = this.props;
let name = mxEvent.sender ? mxEvent.sender.name : mxEvent.getSender();
const name = mxEvent.sender ? mxEvent.sender.name : mxEvent.getSender();
const {msgtype} = mxEvent.getContent();
if (msgtype === 'm.emote') {