Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2449 from matrix-org/dbkr/fix_lint_develop
Browse files Browse the repository at this point in the history
Minimal lint-fixes to make develop CI build
  • Loading branch information
dbkr authored Jan 16, 2019
2 parents 66a6f9d + 4da4e0c commit 82e0436
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default class NewRecoveryMethodDialog extends React.PureComponent {
dis.dispatch({ action: 'view_user_settings' });
}

onSetupClick = async() => {
onSetupClick = async () => {
// TODO: Should change to a restore key backup flow that checks the
// recovery passphrase while at the same time also cross-signing the
// device as well in a single flow. Since we don't have that yet, we'll
Expand Down
2 changes: 1 addition & 1 deletion src/autocomplete/CommunityProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export default class CommunityProvider extends AutocompleteProvider {
if (command) {
const joinedGroups = cli.getGroups().filter(({myMembership}) => myMembership === 'join');

const groups = (await Promise.all(joinedGroups.map(async({groupId}) => {
const groups = (await Promise.all(joinedGroups.map(async ({groupId}) => {
try {
return FlairStore.getGroupProfileCached(cli, groupId);
} catch (e) { // if FlairStore failed, fall back to just groupId
Expand Down
2 changes: 1 addition & 1 deletion src/components/structures/GroupView.js
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@ export default React.createClass({
),
button: _t("Leave"),
danger: this.state.isUserPrivileged,
onFinished: async(confirmed) => {
onFinished: async (confirmed) => {
if (!confirmed) return;

this.setState({membershipBusy: true});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default class GroupInviteTileContextMenu extends React.Component {
Modal.createTrackedDialog('Reject community invite', '', QuestionDialog, {
title: _t('Reject invitation'),
description: _t('Are you sure you want to reject the invitation?'),
onFinished: async(shouldLeave) => {
onFinished: async (shouldLeave) => {
if (!shouldLeave) return;

// FIXME: controller shouldn't be loading a view :(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default class StatusMessageContextMenu extends React.Component {
};
}

_onClearClick = async(e) => {
_onClearClick = async (e) => {
await MatrixClientPeg.get()._unstable_setStatusMessage("");
this.setState({message: ""});
};
Expand Down

0 comments on commit 82e0436

Please sign in to comment.