Fix code style errors

This commit is contained in:
Justin Greywolf
2019-12-06 20:35:22 -08:00
parent 2a41280076
commit 6a9b251be1
2 changed files with 5 additions and 5 deletions

View File

@@ -3,18 +3,18 @@ import { logger } from '../../logger';
let relations = []; let relations = [];
let classes = {}; let classes = {};
const splitClassNameAndType = function(id){ const splitClassNameAndType = function(id) {
let genericType = ''; let genericType = '';
let className = id; let className = id;
if(id.indexOf('~') > 0){ if(id.indexOf('~') > 0) {
let split = id.split('~'); let split = id.split('~');
className = split[0]; className = split[0];
genericType = split[1]; genericType = split[1];
} }
return {className: className, type: genericType}; return { className: className, type: genericType };
} };
/** /**
* Function called by parser when a node definition has been found. * Function called by parser when a node definition has been found.

View File

@@ -320,7 +320,7 @@ const drawClass = function(elem, classDef) {
let classTitleString = classDef.id; let classTitleString = classDef.id;
if(classDef.genericType !== undefined && classDef.genericType !== ''){ if (classDef.genericType !== undefined && classDef.genericType !== '') {
classTitleString += '<' + classDef.genericType + '>'; classTitleString += '<' + classDef.genericType + '>';
} }