Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
chenasraf committed Dec 14, 2023
1 parent a3090f9 commit 856eba8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { defaultHelpConfig, HelpConfig, HelpGenerator } from './help'
import {
MassargOption,
MassargFlag,
OptionConfig,
TypedOptionConfig,
MassargHelpFlag,
OPT_FULL_PREFIX,
Expand Down Expand Up @@ -245,7 +244,7 @@ export class MassargCommand<Args extends ArgsObject = ArgsObject> {
}

private assertNotDuplicate<T = string, A extends ArgsObject = Args>(option: MassargOption<T, A>) {
const existingName = this.options.find((c) => c.name === option.name),)
const existingName = this.options.find((c) => c.name === option.name))
if (existingName) {
throw new ValidationError({
code: 'duplicate_option_name',
Expand Down

0 comments on commit 856eba8

Please sign in to comment.