Skip to content

Commit eabdaba

Browse files
jeffmaurybenoitf
authored andcommitted
fix: use nullish coalescing operator (#2692)
Signed-off-by: Jeff MAURY <[email protected]>
1 parent d070c3d commit eabdaba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/backend/src/managers/apiServer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ export class ApiServer implements Disposable {
262262
}
263263

264264
pullModel(req: Request, res: Response): void {
265-
const modelName = req.body['model'] || req.body['name'];
265+
const modelName = req.body['model'] ?? req.body['name'];
266266
let stream: boolean = true;
267267
if ('stream' in req.body) {
268268
stream = req.body['stream'];

0 commit comments

Comments
 (0)