Skip to content

Commit 92d15c7

Browse files
committed
fix(bindgen): ident level for wasi string choice param check
1 parent 1aff94e commit 92d15c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,8 @@ 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`
205-
args += ` raise ValueError(f'${snake} must be one of ${choices.join(', ')}')\n`
204+
args += ` if ${snake} not in (${choices.map((c) => `'${c}'`).join(',')}):\n`
205+
args += ` raise ValueError(f'${snake} must be one of ${choices.join(', ')}')\n`
206206
}
207207
args += ` args.append(str(value))\n`
208208
}

0 commit comments

Comments
 (0)