Skip to content

Commit 158c350

Browse files
Fix few linter issues
1 parent b102a41 commit 158c350

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lua/orgmode/org/mappings.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ function OrgMappings:_todo_change_state(direction)
370370
if not changed then
371371
return
372372
end
373-
item = Files.get_closest_headline()
373+
local item = Files.get_closest_headline()
374374
if not item:is_done() and not was_done then
375375
return item
376376
end
@@ -750,7 +750,7 @@ function OrgMappings:org_time_stamp(inactive)
750750
end
751751

752752
---@param direction string
753-
---@param use_fast_access boolean
753+
---@param use_fast_access? boolean
754754
---@return string
755755
function OrgMappings:_change_todo_state(direction, use_fast_access)
756756
local headline = Headline:new(tree_utils.closest_headline())

lua/orgmode/parser/section.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,8 +455,8 @@ function Section:get_next_headline_same_level()
455455
end
456456

457457
---@param amount number
458-
---@param demote_child_sections boolean
459-
---@param dryRun boolean
458+
---@param demote_child_sections? boolean
459+
---@param dryRun? boolean
460460
function Section:demote(amount, demote_child_sections, dryRun)
461461
amount = amount or 1
462462
demote_child_sections = demote_child_sections or false

0 commit comments

Comments
 (0)