de-tslint
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
8c2b910c03
commit
c6d69f3d3f
1 changed files with 6 additions and 6 deletions
|
@ -82,12 +82,12 @@ class Command {
|
||||||
|
|
||||||
constructor({
|
constructor({
|
||||||
command,
|
command,
|
||||||
aliases=[],
|
aliases = [],
|
||||||
args='',
|
args = '',
|
||||||
description,
|
description,
|
||||||
runFn=undefined,
|
runFn=undefined,
|
||||||
category=CommandCategories.other,
|
category = CommandCategories.other,
|
||||||
hideCompletionAfterSpace=false,
|
hideCompletionAfterSpace = false,
|
||||||
}: {
|
}: {
|
||||||
command: string;
|
command: string;
|
||||||
aliases?: string[];
|
aliases?: string[];
|
||||||
|
@ -437,7 +437,7 @@ export const Commands = [
|
||||||
aliases: ['j', 'goto'],
|
aliases: ['j', 'goto'],
|
||||||
args: '<room-alias>',
|
args: '<room-alias>',
|
||||||
description: _td('Joins room with given alias'),
|
description: _td('Joins room with given alias'),
|
||||||
runFn: function(roomId, args) {
|
runFn: function(_, args) {
|
||||||
if (args) {
|
if (args) {
|
||||||
// Note: we support 2 versions of this command. The first is
|
// Note: we support 2 versions of this command. The first is
|
||||||
// the public-facing one for most users and the other is a
|
// the public-facing one for most users and the other is a
|
||||||
|
@ -710,7 +710,7 @@ export const Commands = [
|
||||||
if (matches) {
|
if (matches) {
|
||||||
const userId = matches[1];
|
const userId = matches[1];
|
||||||
if (matches.length === 4 && undefined !== matches[3]) {
|
if (matches.length === 4 && undefined !== matches[3]) {
|
||||||
powerLevel = parseInt(matches[3]);
|
powerLevel = parseInt(matches[3], 10);
|
||||||
}
|
}
|
||||||
if (!isNaN(powerLevel)) {
|
if (!isNaN(powerLevel)) {
|
||||||
const cli = MatrixClientPeg.get();
|
const cli = MatrixClientPeg.get();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue