Skip to content

Commit

Permalink
fix(hipatterns): remove assert. Fixes #1045
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jul 2, 2023
1 parent a981682 commit 6d58f1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lazyvim/plugins/extras/util/mini-hipatterns.lua
Expand Up @@ -54,7 +54,7 @@ M.plugin = {
local match = m.full_match
---@type string, number
local color, shade = match:match("[%w-]+%-([a-z%-]+)%-(%d+)")
shade = assert(tonumber(shade))
shade = tonumber(shade)
local bg = vim.tbl_get(M.colors, color, shade)
if bg then
local hl = "MiniHipatternsTailwind" .. color .. shade
Expand Down

0 comments on commit 6d58f1d

Please sign in to comment.