mirror of https://github.com/vector-im/riot-web
Appease the linter
parent
21405b8f25
commit
d0c28adfb1
|
@ -42,7 +42,7 @@ class Skinner {
|
||||||
};
|
};
|
||||||
|
|
||||||
// Check the skin first
|
// 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
|
// Just return nothing instead of erroring - the consumer should be smart enough to
|
||||||
// handle this at this point.
|
// 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
|
* with a skinned version. If no skinned version is available, this component
|
||||||
* will be used.
|
* 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
|
// Decorators return a function to override the class (origComponent). This
|
||||||
// ultimately assumes that `getComponent()` won't throw an error and instead
|
// 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.
|
// return a falsey value like `null` when the skin doesn't have a component.
|
||||||
|
|
Loading…
Reference in New Issue