Skip to content

Commit

Permalink
remove unecessary runtime check
Browse files Browse the repository at this point in the history
  • Loading branch information
talentlessguy committed Feb 4, 2024
1 parent d3b75da commit 501a05d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions clif.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,6 @@ export class CLI {
}

if (typeof nameOrAction === 'string') {
if (typeof actionOrOptions !== 'function') {
throw new Error(`Command action for ${nameOrAction} is required`)
}
const cmd = {
name: nameOrAction,
action: actionOrOptions,
Expand Down

0 comments on commit 501a05d

Please sign in to comment.