From 6a9b251be15924e4893db253ffe810b90591b18e Mon Sep 17 00:00:00 2001 From: Justin Greywolf Date: Fri, 6 Dec 2019 20:35:22 -0800 Subject: [PATCH] Fix code style errors --- src/diagrams/class/classDb.js | 8 ++++---- src/diagrams/class/classRenderer.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/diagrams/class/classDb.js b/src/diagrams/class/classDb.js index 8a6624af6..616dba4e6 100644 --- a/src/diagrams/class/classDb.js +++ b/src/diagrams/class/classDb.js @@ -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. diff --git a/src/diagrams/class/classRenderer.js b/src/diagrams/class/classRenderer.js index aacb53569..67f78aa5b 100644 --- a/src/diagrams/class/classRenderer.js +++ b/src/diagrams/class/classRenderer.js @@ -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 + '>'; }