Skip to content

Commit 41c7775

Browse files
committed
fix(bindgen): fix indentation for wasi choice check
1 parent 2f36f8d commit 41c7775

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/core/typescript/itk-wasm/src/bindgen/python/wasi/wasi-function-module.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ from itkwasm import (
201201
} else {
202202
if (parameter.type.startsWith('TEXT:{')) {
203203
const choices = parameter.type.split('{')[1].split('}')[0].split(',')
204-
args += ` if ${snake} not in (${choices.map((c) => `'${c}'`).join(',')}):\n`
204+
args += ` if ${snake} not in (${choices.map((c) => `'${c}'`).join(', ')}):\n`
205205
args += ` raise ValueError(f'${snake} must be one of ${choices.join(', ')}')\n`
206206
}
207207
args += ` args.append(str(value))\n`
@@ -234,9 +234,9 @@ from itkwasm import (
234234
} else {
235235
args += ` if ${snake}:\n`
236236
if (parameter.type.startsWith('TEXT:{')) {
237-
const choices = parameter.type.split('{')[1].split('}')[0].split(',')
238-
args += ` if ${snake} not in (${choices.map((c) => `'${c}'`).join(',')}):\n`
239-
args += ` raise ValueError(f'${snake} must be one of ${choices.join(', ')}')\n`
237+
const choices = parameter.type.split('{')[1].split('}')[0].split(', ')
238+
args += ` if ${snake} not in (${choices.map((c) => `'${c}'`).join(',')}):\n`
239+
args += ` raise ValueError(f'${snake} must be one of ${choices.join(', ')}')\n`
240240
}
241241
args += ` args.append('--${parameter.name}')\n`
242242
args += ` args.append(str(${snake}))\n`

0 commit comments

Comments
 (0)