Misc linter cleanup

This commit is contained in:
Travis Ralston 2019-02-21 17:53:29 -07:00
parent 1e6594ceba
commit 9795161f40
4 changed files with 10 additions and 15 deletions

View file

@ -15,10 +15,8 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
import Promise from 'bluebird';
const React = require('react');
import PropTypes from 'prop-types';
const ObjectUtils = require("../../../ObjectUtils");
const MatrixClientPeg = require('../../../MatrixClientPeg');
const sdk = require("../../../index");
import { _t } from '../../../languageHandler';
@ -98,7 +96,7 @@ export default class AliasSettings extends React.Component {
title: _t("Error updating main address"),
description: _t(
"There was an error updating the room's main address. It may not be allowed by the server " +
"or a temporary failure occurred."
"or a temporary failure occurred.",
),
});
}).finally(() => {
@ -136,7 +134,7 @@ export default class AliasSettings extends React.Component {
title: _t("Error creating alias"),
description: _t(
"There was an error creating that alias. It may not be allowed by the server " +
"or a temporary failure occurred."
"or a temporary failure occurred.",
),
});
});
@ -172,7 +170,7 @@ export default class AliasSettings extends React.Component {
title: _t("Error removing alias"),
description: _t(
"There was an error removing that alias. It may no longer exist or a temporary " +
"error occurred."
"error occurred.",
),
});
});

View file

@ -20,7 +20,6 @@ import {MatrixEvent, MatrixClient} from 'matrix-js-sdk';
import sdk from '../../../index';
import { _t } from '../../../languageHandler';
import Modal from '../../../Modal';
import isEqual from 'lodash/isEqual';
import ErrorDialog from "../dialogs/ErrorDialog";
const GROUP_ID_REGEX = /\+\S+:\S+/;
@ -58,10 +57,10 @@ export default class RelatedGroupSettings extends React.Component {
title: _t("Error updating flair"),
description: _t(
"There was an error updating the flair for this room. The server may not allow it or " +
"a temporary error occurred."
"a temporary error occurred.",
),
});
})
});
}
validateGroupId(groupId) {
@ -120,4 +119,4 @@ export default class RelatedGroupSettings extends React.Component {
/>
</div>;
}
};
}