Skip to content

Commit

Permalink
chore: fix alerts on lgtm.com
Browse files Browse the repository at this point in the history
  • Loading branch information
bubkoo committed May 14, 2020
1 parent 21adc93 commit 28ccd8d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/x6/src/view/edge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -967,17 +967,13 @@ export class EdgeView<
targetPoint: Point,
) {
const def =
this.cell.getConnector() ||
this.graph.options.connecting.connector ||
Connector.presets.normal
this.cell.getConnector() || this.graph.options.connecting.connector

let name: string | undefined
let args: Connector.BaseOptions | undefined
let fn: Connector.Definition

if (typeof def === 'function') {
fn = def
} else if (typeof def === 'string') {
if (typeof def === 'string') {
name = def
} else {
name = def.name
Expand Down

0 comments on commit 28ccd8d

Please sign in to comment.