Skip to content

Commit

Permalink
Cleanup typescript function declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
DraTeots committed Jul 15, 2024
1 parent 51a80ae commit d25f767
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions firebird-ng/src/lib-root-geometry/root-geo-edit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,8 @@ export function editGeoNodes(topNode: any, rules: GeoNodeEditRule[], maxLevel:nu
* Removes a node from its mother volume.
*
* @param {any} node - The node to be removed.
* @return {void} This function does not return a value.
*/
export function removeGeoNode(node: any) {
export function removeGeoNode(node: any): void {
let motherVolume = node.fMother
let siblings = motherVolume?.fNodes?.arr
if (siblings) {
Expand All @@ -167,9 +166,8 @@ export function removeGeoNode(node: any) {
* Removes all child nodes from the given node.
*
* @param {any} node - The node from which to remove the child nodes.
* @return {void} This function does not return anything.
*/
export function removeChildren(node: any) {
export function removeChildren(node: any): void {
let daughters = node.fVolume?.fNodes?.arr;

if (daughters) {
Expand Down

0 comments on commit d25f767

Please sign in to comment.