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 resultLength
local bindable = Instance.new("BindableEvent") local bindable = Instance.new("BindableEvent")
self:andThen(function(...) self:andThen(
function(...)
resultLength, result = pack(...) resultLength, result = pack(...)
bindable:Fire(true) bindable:Fire(true)
end, function(...) end,
function(...)
resultLength, result = pack(...) resultLength, result = pack(...)
bindable:Fire(false) bindable:Fire(false)
end) end
)
local ok = bindable.Event:Wait() local ok = bindable.Event:Wait()
bindable:Destroy() bindable:Destroy()