Skip to content

Commit eabff06

Browse files
committed
Remove redundant api call
1 parent da8bcec commit eabff06

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lua/telescope-orgmode/utils.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ utils.get_entries = function(opts)
2222

2323
local results = {}
2424
for _, file_entry in ipairs(file_results) do
25-
local agenda_file = orgmode.load(file_entry.filename)
26-
for _, headline in ipairs(agenda_file.headlines) do
25+
for _, headline in ipairs(file_entry.file.headlines) do
2726

2827
local allowed_depth = opts.max_depth == nil or headline.level <= opts.max_depth
2928
local allowed_archive = opts.archived or not headline.is_archived

0 commit comments

Comments
 (0)