Skip to content

Commit

Permalink
Merge pull request #11 from rokucommunity/unused-variable-warning
Browse files Browse the repository at this point in the history
Fixed an unused variable warning
  • Loading branch information
TwitchBronBron authored Nov 29, 2023
2 parents 3f75e79 + 3e1c0c1 commit 674aa38
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/source/promises.bs
Original file line number Diff line number Diff line change
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 674aa38

Please sign in to comment.