Skip to content

Commit 8144aff

Browse files
committed
Address luacheck warning
"lua/scrollview/signs/keywords.lua:128:25: value assigned to variable match is unused"
1 parent 4d346e5 commit 8144aff

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lua/scrollview/signs/keywords.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,10 @@ function M.init(enable)
143143
-- Treesitter nor 'commentstring'.
144144
if scope == SCOPE_AUTO then
145145
match = in_comment_ts == nil and in_comment_cs == nil
146-
else -- scope == SCOPE_COMMENTS
146+
elseif scope == SCOPE_COMMENTS then
147147
match = false
148+
else
149+
error('Unknown scope: ' .. scope)
148150
end
149151
end
150152
end

0 commit comments

Comments
 (0)