chore(core): remove unnecessary initializers

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2023-02-09 12:38:58 +01:00
committed by Braks
parent 72325d4887
commit db0ec8836f

View File

@@ -68,7 +68,7 @@ function getPoints({
const dirAccessor = dir.x !== 0 ? 'x' : 'y'
const currDir = dir[dirAccessor]
let points: XYPosition[] = []
let points: XYPosition[]
let centerX, centerY
const [defaultCenterX, defaultCenterY, defaultOffsetX, defaultOffsetY] = getSimpleEdgeCenter({
sourceX: source.x,
@@ -180,7 +180,7 @@ export function getSmoothStepPath({
})
const path = points.reduce((res, p, i) => {
let segment = ''
let segment
if (i > 0 && i < points.length - 1) {
segment = getBend(points[i - 1], p, points[i + 1], borderRadius)