From da2ba0ec49fb11e3d40792b83c93ba7d82ce54d4 Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Sun, 31 Oct 2021 17:38:30 +0100 Subject: [PATCH] lint --- tabby-core/src/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tabby-core/src/utils.ts b/tabby-core/src/utils.ts index 4e7ce896..082bc136 100644 --- a/tabby-core/src/utils.ts +++ b/tabby-core/src/utils.ts @@ -67,9 +67,9 @@ export const TAB_COLORS = [ export function serializeFunction Promise> (fn: T): T { let queue = Promise.resolve() - return (...args) => { + return ((...args) => { const res = queue.then(() => fn(...args)) queue = res.catch(() => null) return res - } + }) as T }