Skip to content

Commit e8a1b5f

Browse files
committed
Refactoring
1 parent afd3f76 commit e8a1b5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const getOptions = (options: Options = {}) => {
2626
throw new TypeError('The "custom" option must not be defined.')
2727
}
2828

29-
return options
29+
return { ...options, custom: 'pretty' }
3030
}
3131

3232
/**
@@ -53,7 +53,7 @@ const exit = ({ error, options }: Info<Options>['instanceMethods']) => {
5353
removePretty(error)
5454

5555
try {
56-
handleCliError(error, { ...options, custom: 'pretty' })
56+
handleCliError(error, options)
5757
} finally {
5858
restorePretty(error)
5959
}

0 commit comments

Comments
 (0)