Remove duplicate code
This commit is contained in:
parent
a4992963b3
commit
6ece2838bd
|
@ -45,9 +45,6 @@ export const addVertex = function (id, text, type, style) {
|
||||||
if (typeof type !== 'undefined') {
|
if (typeof type !== 'undefined') {
|
||||||
vertices[id].type = type
|
vertices[id].type = type
|
||||||
}
|
}
|
||||||
if (typeof type !== 'undefined') {
|
|
||||||
vertices[id].type = type
|
|
||||||
}
|
|
||||||
if (typeof style !== 'undefined') {
|
if (typeof style !== 'undefined') {
|
||||||
if (style !== null) {
|
if (style !== null) {
|
||||||
style.forEach(function (s) {
|
style.forEach(function (s) {
|
||||||
|
|
Loading…
Reference in New Issue