mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 11:47:23 +03:00
Appease the linter
This commit is contained in:
parent
21405b8f25
commit
d0c28adfb1
2 changed files with 2 additions and 2 deletions
|
@ -42,7 +42,7 @@ class Skinner {
|
|||
};
|
||||
|
||||
// Check the skin first
|
||||
let comp = doLookup(this.components);
|
||||
const comp = doLookup(this.components);
|
||||
|
||||
// Just return nothing instead of erroring - the consumer should be smart enough to
|
||||
// handle this at this point.
|
||||
|
|
|
@ -32,7 +32,7 @@ import * as sdk from '../index';
|
|||
* with a skinned version. If no skinned version is available, this component
|
||||
* will be used.
|
||||
*/
|
||||
export function replaceableComponent<T extends{new(...args:any[])}>(name: string) {
|
||||
export function replaceableComponent<T extends{new(...args: any[])}>(name: string) {
|
||||
// Decorators return a function to override the class (origComponent). This
|
||||
// ultimately assumes that `getComponent()` won't throw an error and instead
|
||||
// return a falsey value like `null` when the skin doesn't have a component.
|
||||
|
|
Loading…
Reference in a new issue