Skip to content

Commit

Permalink
fix(bindgen): ident level for wasi string choice param check
Browse files Browse the repository at this point in the history
  • Loading branch information
thewtex committed Nov 27, 2024
1 parent 1aff94e commit 92d15c7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,8 @@ from itkwasm import (
} else {
if (parameter.type.startsWith('TEXT:{')) {
const choices = parameter.type.split('{')[1].split('}')[0].split(',')
args += ` if ${snake} not in (${choices.map((c) => `'${c}'`).join(',')}):\n`
args += ` raise ValueError(f'${snake} must be one of ${choices.join(', ')}')\n`
args += ` if ${snake} not in (${choices.map((c) => `'${c}'`).join(',')}):\n`
args += ` raise ValueError(f'${snake} must be one of ${choices.join(', ')}')\n`
}
args += ` args.append(str(value))\n`
}
Expand Down

0 comments on commit 92d15c7

Please sign in to comment.