diff --git a/src/utils.ts b/src/utils.ts index 119c6b23..491b409e 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -21,7 +21,6 @@ type ExtractErrAsyncTypes[]> = [idx in keyof T]: T[idx] extends ResultAsync ? E : never } - const appendValueToEndOfList = (value: T) => (list: T[]): T[] => { // need to wrap `value` inside of an array in order to prevent // Array.prototype.concat from destructuring the contents of `value` @@ -30,7 +29,7 @@ const appendValueToEndOfList = (value: T) => (list: T[]): T[] => { // Otherwise you will receive [ 'hi', 1, 2, 3 ] // when you actually expected a tuple containing [ 'hi', [ 1, 2, 3 ] ] if (Array.isArray(value)) { - return list.concat([ value ]) + return list.concat([value]) } return list.concat(value)