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
commit b097b8bb34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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) {