Skip to content

Commit

Permalink
Fix incorrect pcall use - credit to @nanotee
Browse files Browse the repository at this point in the history
  • Loading branch information
wbthomason committed Nov 5, 2020
1 parent b3a1bb3 commit 6f9efb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/packer/plugin_utils.lua
Expand Up @@ -121,7 +121,7 @@ plugin_utils.post_update_hook = function(plugin, disp)
if plugin.run then
disp:task_update(plugin_name, 'running post update hook...')
if type(plugin.run) == 'function' then
if pcall(plugin.run(plugin)) then
if pcall(plugin.run, plugin) then
return result.ok(true)
else
return result.err({msg = 'Error running post update hook'})
Expand Down

0 comments on commit 6f9efb2

Please sign in to comment.