Skip to content

Commit

Permalink
chore: comment out empty if statement to prevent luacheck from gettin…
Browse files Browse the repository at this point in the history
…g triggered
  • Loading branch information
vhyrro committed Aug 7, 2023
1 parent 0f37ab8 commit dde2ecf
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lua/neorg/modules/core/tangle/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -334,10 +334,12 @@ module.public = {
commentstrings[language] = get_comment_string(language)
end

if not language or commentstrings[language] == "" then
-- No action

elseif options.delimiter == "heading" then
-- TODO(vhyrro): Maybe issue warnings to the user when the target
-- commentstring is not found by Neovim?
-- if not language or commentstrings[language] == "" then
-- No action
-- end
if options.delimiter == "heading" then
-- get current heading
local heading_string
local heading = treesitter.find_parent(node, "heading%d+")
Expand Down

0 comments on commit dde2ecf

Please sign in to comment.