mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-22 08:50:13 +02:00
chore: resolve eslint warnings in packages/parser/src/language/common/valueConverter.ts
This commit is contained in:
@@ -31,9 +31,8 @@ export abstract class AbstractMermaidValueConverter extends DefaultValueConverte
|
|||||||
): ValueType {
|
): ValueType {
|
||||||
let value: ValueType | undefined = this.runCommonConverter(rule, input, cstNode);
|
let value: ValueType | undefined = this.runCommonConverter(rule, input, cstNode);
|
||||||
|
|
||||||
if (value === undefined) {
|
value ??= this.runCustomConverter(rule, input, cstNode);
|
||||||
value = this.runCustomConverter(rule, input, cstNode);
|
|
||||||
}
|
|
||||||
if (value === undefined) {
|
if (value === undefined) {
|
||||||
return super.runConverter(rule, input, cstNode);
|
return super.runConverter(rule, input, cstNode);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user