From 0451f2ff68abf6c0712b627814c056865fc213b1 Mon Sep 17 00:00:00 2001 From: Bartosz Grajdek Date: Tue, 12 Sep 2023 11:34:54 +0200 Subject: [PATCH] Remove void return --- src/libs/Growl.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libs/Growl.ts b/src/libs/Growl.ts index 3d433e00b64a..99c728f0a210 100644 --- a/src/libs/Growl.ts +++ b/src/libs/Growl.ts @@ -11,7 +11,7 @@ const isReadyPromise = new Promise((resolve) => { resolveIsReadyPromise = resolve; }); -function setIsReady(): void { +function setIsReady() { if (!resolveIsReadyPromise) return; resolveIsReadyPromise(); } @@ -19,7 +19,7 @@ function setIsReady(): void { /** * Show the growl notification */ -function show(bodyText: string, type: string, duration: number = CONST.GROWL.DURATION): void { +function show(bodyText: string, type: string, duration: number = CONST.GROWL.DURATION) { isReadyPromise.then(() => { if (!growlRef?.current?.show) return; growlRef.current.show(bodyText, type, duration); @@ -29,14 +29,14 @@ function show(bodyText: string, type: string, duration: number = CONST.GROWL.DUR /** * Show error growl */ -function error(bodyText: string, duration: number = CONST.GROWL.DURATION): void { +function error(bodyText: string, duration: number = CONST.GROWL.DURATION) { show(bodyText, CONST.GROWL.ERROR, duration); } /** * Show success growl */ -function success(bodyText: string, duration: number = CONST.GROWL.DURATION): void { +function success(bodyText: string, duration: number = CONST.GROWL.DURATION) { show(bodyText, CONST.GROWL.SUCCESS, duration); }