Skip to content

Commit 9619218

Browse files
committed
Remove redundant null coalesce
1 parent 6505abb commit 9619218

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/models.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ async function getSession(pretrained_model_name_or_path, fileName, options) {
187187
const suffix = DEFAULT_DTYPE_SUFFIX_MAPPING[selectedDtype];
188188
const modelFileName = `${options.subfolder ?? ''}/${fileName}${suffix}.onnx`;
189189

190-
const session_options = { ...options.session_options } ?? {};
190+
const session_options = { ...options.session_options };
191191

192192
// Overwrite `executionProviders` if not specified
193193
session_options.executionProviders ??= executionProviders;

0 commit comments

Comments
 (0)