From 3e1c0c1ce96a28ebb6423cf1acda004969e8bb30 Mon Sep 17 00:00:00 2001 From: Christopher Dwyer-Perkins Date: Wed, 29 Nov 2023 12:48:17 -0400 Subject: [PATCH] Fixed an unused variable warning --- src/source/promises.bs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/source/promises.bs b/src/source/promises.bs index 11574ab..b75fb56 100644 --- a/src/source/promises.bs +++ b/src/source/promises.bs @@ -211,7 +211,8 @@ namespace promises ' Makes sure the value supplied is a promise function ensurePromise(value as object) as object - return promises.isPromise(value) ? value : promises.resolve(value) + if promises.isPromise(value) then return value + return promises.resolve(value) end function end namespace