make eslint happy again
This commit is contained in:
@ -43,11 +43,11 @@ import { kclManager, engineCommandManager, editorManager } from 'lib/singletons'
|
|||||||
* Apply Fillet To Selection
|
* Apply Fillet To Selection
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export function applyFilletToSelection(
|
export async function applyFilletToSelection(
|
||||||
ast: Program,
|
ast: Program,
|
||||||
selection: Selections,
|
selection: Selections,
|
||||||
radius: KclCommandValue
|
radius: KclCommandValue
|
||||||
): void | Error {
|
): Promise <void | Error> {
|
||||||
// 1. clone ast
|
// 1. clone ast
|
||||||
let clonedAst = structuredClone(ast)
|
let clonedAst = structuredClone(ast)
|
||||||
|
|
||||||
@ -57,7 +57,6 @@ export function applyFilletToSelection(
|
|||||||
const { modifiedAst, pathToFilletNode } = result
|
const { modifiedAst, pathToFilletNode } = result
|
||||||
|
|
||||||
// 3. update ast
|
// 3. update ast
|
||||||
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
||||||
updateAstAndFocus(modifiedAst, pathToFilletNode)
|
updateAstAndFocus(modifiedAst, pathToFilletNode)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user