Skip to content

Commit 3563fd1

Browse files
committedMar 19, 2025
fix: linter errors
1 parent e245e6c commit 3563fd1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed
 

‎lua/orgmode/babel/tangle.lua

+6-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function Tangle:tangle()
3737
if tangle_info[info.filename] then
3838
table.insert(tangle_info[info.filename]['content'], '')
3939
else
40-
tangle_info[info.filename] = {content = {}}
40+
tangle_info[info.filename] = { content = {} }
4141
end
4242

4343
local filemode = tangle_info[info.filename]['mode']
@@ -95,7 +95,11 @@ function Tangle:tangle()
9595

9696
local promises = {}
9797
for filename, block in pairs(tangle_info) do
98-
table.insert(promises, utils.writefile(filename, table.concat(self:_remove_obsolete_indent(block['content']), '\n')))
98+
table.insert(
99+
promises,
100+
utils.writefile(filename, table.concat(self:_remove_obsolete_indent(block['content']), '\n'))
101+
)
102+
99103
local mode_str = block['mode']
100104
if mode_str and mode_str:sub(1, 1) == 'o' then
101105
mode_str = mode_str:sub(2)

0 commit comments

Comments
 (0)