Skip to content

Commit 63b6e1d

Browse files
committed
Use chain operator
1 parent 2ee67e4 commit 63b6e1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/commands/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ export class CommandRegistry {
160160
*/
161161
describedBy(id: string): { args: ReadonlyJSONObject | null } {
162162
let cmd = this._commands[id];
163-
return cmd ? cmd.describedBy : { args: null };
163+
return cmd?.describedBy ?? { args: null };
164164
}
165165

166166
/**

0 commit comments

Comments
 (0)