Skip to content

Commit

Permalink
Simplify transformationOptions code
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
  • Loading branch information
florian-h05 committed Sep 12, 2024
1 parent 41a03e4 commit 157a586
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,14 +143,10 @@ export default function defineOHBlocks_Scripts (f7, isGraalJs, transformationSer
}

function transformationOptions () {
let options = []
if (transformationServices && transformationServices.length > 0) {
for (let key in transformationServices) {
let transformationOption = transformationServices[key]
options.push([transformationOption, transformationOption])
}
return transformationServices.map((service) => [service, service])
}
return options.length > 0 ? options : [['', '']]
return [['', '']]
}

/*
Expand Down

0 comments on commit 157a586

Please sign in to comment.