Style cleanup

This commit is contained in:
Lucien Greathouse 2018-09-14 13:39:27 -07:00
parent 3c9881a478
commit bb68da5e5b

View file

@ -294,13 +294,16 @@ function Promise:await()
local resultLength
local bindable = Instance.new("BindableEvent")
self:andThen(function(...)
resultLength, result = pack(...)
bindable:Fire(true)
end, function(...)
resultLength, result = pack(...)
bindable:Fire(false)
end)
self:andThen(
function(...)
resultLength, result = pack(...)
bindable:Fire(true)
end,
function(...)
resultLength, result = pack(...)
bindable:Fire(false)
end
)
local ok = bindable.Event:Wait()
bindable:Destroy()