Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Zi0LEO committed Jan 24, 2025
1 parent 7cf6fb9 commit f8b6277
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lua/doing/state.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ local function add_to_gitignore()
local is_ignored = false
if gitignore then
while not is_ignored do
local line = gitignore:read "*line"
local line = gitignore:read("*line")
if not line then
break
end
Expand All @@ -52,11 +52,6 @@ local function add_to_gitignore()
gitignore:close()
end
end

if gitignore then
gitignore:write(config.options.store.file_name .. "\n")
gitignore:close()
end
end

---syncs file tasks with loaded tasks
Expand Down

0 comments on commit f8b6277

Please sign in to comment.