/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
import{getPaths as c,isCircularArc as e}from"../../../../../geometry/support/curves/curveUtils.js";function t(t){let r=c(t);const o=r.length-1,n=r[o].length-1,l=r[o][n];return e(l)&&l.c[0][0]===l.c[1][0]&&l.c[0][1]===l.c[1][1]&&(t=t.clone(),r=c(t),r[o][n]=l.c[0].slice()),t}export{t as fixInvalidCurves};
