diff options
author | altermo <107814000+altermo@users.noreply.github.com> | 2024-01-17 20:34:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-17 13:34:25 -0600 |
commit | 5aa14e1231b7eccfbc54cba8f20d54105212847d (patch) | |
tree | a42e96c2071f0f20076f74b4979fabadb87fb974 /scripts/gen_help_html.lua | |
parent | f5d59340a6e8a71fb766fbfbf796377d7d9e4c20 (diff) | |
download | rneovim-5aa14e1231b7eccfbc54cba8f20d54105212847d.tar.gz rneovim-5aa14e1231b7eccfbc54cba8f20d54105212847d.tar.bz2 rneovim-5aa14e1231b7eccfbc54cba8f20d54105212847d.zip |
fix(lua): return after assert returns assert message (#27064)
Diffstat (limited to 'scripts/gen_help_html.lua')
-rw-r--r-- | scripts/gen_help_html.lua | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/scripts/gen_help_html.lua b/scripts/gen_help_html.lua index 49417e72bb..5986a399d9 100644 --- a/scripts/gen_help_html.lua +++ b/scripts/gen_help_html.lua @@ -1123,10 +1123,8 @@ function M._test() 'if "expected" is given, "actual" is also required' ) if expected then - return assert( - cond, - ('expected %s, got: %s'):format(vim.inspect(expected), vim.inspect(actual)) - ) + assert(cond, ('expected %s, got: %s'):format(vim.inspect(expected), vim.inspect(actual))) + return cond else return assert(cond) end |