aboutsummaryrefslogtreecommitdiff
path: root/scripts/gen_help_html.lua
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/gen_help_html.lua')
-rw-r--r--scripts/gen_help_html.lua6
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