Merge pull request #768 from znxkznxk1030/master

Remove duplicate code
This commit is contained in:
Tyler Long
2018-12-17 15:06:00 +08:00
committed by GitHub

View File

@@ -45,9 +45,6 @@ export const addVertex = function (id, text, type, style) {
if (typeof type !== 'undefined') {
vertices[id].type = type
}
if (typeof type !== 'undefined') {
vertices[id].type = type
}
if (typeof style !== 'undefined') {
if (style !== null) {
style.forEach(function (s) {