mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
Fix code style errors
This commit is contained in:
parent
2a41280076
commit
6a9b251be1
@ -3,18 +3,18 @@ import { logger } from '../../logger';
|
||||
let relations = [];
|
||||
let classes = {};
|
||||
|
||||
const splitClassNameAndType = function(id){
|
||||
const splitClassNameAndType = function(id) {
|
||||
let genericType = '';
|
||||
let className = id;
|
||||
|
||||
if(id.indexOf('~') > 0){
|
||||
if(id.indexOf('~') > 0) {
|
||||
let split = id.split('~');
|
||||
className = split[0];
|
||||
genericType = split[1];
|
||||
}
|
||||
|
||||
return {className: className, type: genericType};
|
||||
}
|
||||
return { className: className, type: genericType };
|
||||
};
|
||||
|
||||
/**
|
||||
* Function called by parser when a node definition has been found.
|
||||
|
@ -320,7 +320,7 @@ const drawClass = function(elem, classDef) {
|
||||
|
||||
let classTitleString = classDef.id;
|
||||
|
||||
if(classDef.genericType !== undefined && classDef.genericType !== ''){
|
||||
if (classDef.genericType !== undefined && classDef.genericType !== '') {
|
||||
classTitleString += '<' + classDef.genericType + '>';
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user