mirror of
https://github.com/neovim/neovim.git
synced 2026-04-19 22:10:45 +00:00
fix(lua): return after assert returns assert message (#27064)
This commit is contained in:
@@ -77,7 +77,8 @@ function M.to_lpeg(pattern)
|
||||
})
|
||||
|
||||
local lpeg_pattern = p:match(pattern) --[[@as vim.lpeg.Pattern?]]
|
||||
return assert(lpeg_pattern, 'Invalid glob')
|
||||
assert(lpeg_pattern, 'Invalid glob')
|
||||
return lpeg_pattern
|
||||
end
|
||||
|
||||
return M
|
||||
|
||||
Reference in New Issue
Block a user