Auto-fix lint errors

This commit is contained in:
J. Ryan Stinnett 2021-06-29 13:11:58 +01:00
parent 4c5720a573
commit ae0a8b8da4
625 changed files with 3170 additions and 3232 deletions

View file

@ -125,7 +125,7 @@ export class CapabilityText {
if (eventCap.isState) {
return !eventCap.keyStr
? _t("with an empty state key")
: _t("with state key %(stateKey)s", {stateKey: eventCap.keyStr});
: _t("with state key %(stateKey)s", { stateKey: eventCap.keyStr });
}
return null; // room messages are handled specially
}
@ -134,8 +134,8 @@ export class CapabilityText {
// First see if we have a super simple line of text to provide back
if (CapabilityText.simpleCaps[capability]) {
const textForKind = CapabilityText.simpleCaps[capability];
if (textForKind[kind]) return {primary: _t(textForKind[kind])};
if (textForKind[GENERIC_WIDGET_KIND]) return {primary: _t(textForKind[GENERIC_WIDGET_KIND])};
if (textForKind[kind]) return { primary: _t(textForKind[kind]) };
if (textForKind[GENERIC_WIDGET_KIND]) return { primary: _t(textForKind[GENERIC_WIDGET_KIND]) };
// ... we'll fall through to the generic capability processing at the end of this
// function if we fail to locate a simple string and the capability isn't for an
@ -215,7 +215,7 @@ export class CapabilityText {
// We don't have enough context to render this capability specially, so we'll present it as-is
return {
primary: _t("The <b>%(capability)s</b> capability", {capability}, {
primary: _t("The <b>%(capability)s</b> capability", { capability }, {
b: sub => <b>{sub}</b>,
}),
};
@ -348,7 +348,7 @@ export class CapabilityText {
});
}
}
return {primary};
return { primary };
}
}
}