Skip to content

Commit

Permalink
Fixed an unused variable warning
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdp committed Nov 29, 2023
1 parent 3f75e79 commit 3e1c0c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/source/promises.bs
Expand Up @@ -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

Expand Down

0 comments on commit 3e1c0c1

Please sign in to comment.