From 6a6cd868781cd628ac348f080be7383bf7bb1f0a Mon Sep 17 00:00:00 2001 From: Giorgio Delgado Date: Thu, 25 Feb 2021 10:29:55 -0500 Subject: [PATCH] Format files --- src/utils.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)