Skip to content

Commit 0d5bcf3

Browse files
authored
Apply suggestion from @Tieske
1 parent 0f20703 commit 0d5bcf3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

busted/init.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ local function init(busted)
3030

3131
block.rejectAll(element)
3232
element.env.finally = function(fn)
33-
local old_finally = finally
33+
local old_finally = finally or function() end
3434
finally = function()
3535
fn()
36-
(old_finally or function() end)()
36+
old_finally()
3737
end
3838
end
3939
element.env.pending = busted.pending

0 commit comments

Comments
 (0)