Skip to content

Commit b6782a9

Browse files
committed
Simplify code
1 parent 1273572 commit b6782a9

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/main.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,8 @@ const getOptions = (options: Options = {}) => {
3838
* ```
3939
*/
4040
// Stack traces and error properties are displayed by default.
41-
const exit = ({
42-
error,
43-
options: { stack = true, ...options },
44-
}: Info<Options>['instanceMethods']) => {
45-
handleCliError(error, { ...options, stack })
41+
const exit = ({ error, options }: Info<Options>['instanceMethods']) => {
42+
handleCliError(error, options)
4643
}
4744

4845
/**

0 commit comments

Comments
 (0)