Skip to content

Commit 2e95789

Browse files
authored
Remove redundant catch in generatePath (#196)
* Remove redundant catch in generatePath * format
1 parent a140edd commit 2e95789

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/document/DocumentModel.tsx

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -103,14 +103,12 @@ const StateStore = types
103103
pathStore.setGenerating(true);
104104
resolve(pathStore);
105105
})
106-
.then(
107-
() =>
108-
invoke("generate_trajectory", {
109-
path: pathStore.waypoints,
110-
config: self.document.robotConfig,
111-
constraints: pathStore.asSolverPath().constraints,
112-
}),
113-
(e) => e
106+
.then(() =>
107+
invoke("generate_trajectory", {
108+
path: pathStore.waypoints,
109+
config: self.document.robotConfig,
110+
constraints: pathStore.asSolverPath().constraints,
111+
})
114112
)
115113
.then(
116114
(rust_traj) => {

0 commit comments

Comments
 (0)