Skip to content

Commit 29aa6f5

Browse files
committed
chore(lint): fix shadowed local and apply formatting
1 parent ffd1e88 commit 29aa6f5

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

lua/peekstack/config.lua

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,12 @@ local function validate_ui_keys(cfg)
468468
for name, val in pairs(keys) do
469469
if type(val) ~= "string" then
470470
notify.warn(
471-
string.format("ui.keys.%s must be a string, got %s. Falling back to %s", name, type(val), tostring(defaults[name]))
471+
string.format(
472+
"ui.keys.%s must be a string, got %s. Falling back to %s",
473+
name,
474+
type(val),
475+
tostring(defaults[name])
476+
)
472477
)
473478
keys[name] = defaults[name]
474479
end

lua/peekstack/core/stack.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ local function unindex_popup(model)
6767
end
6868

6969
-- Guard against tests mutating id/winid directly.
70-
for id, entry in pairs(popup_by_id) do
70+
for popup_id, entry in pairs(popup_by_id) do
7171
if entry.popup == model then
72-
popup_by_id[id] = nil
72+
popup_by_id[popup_id] = nil
7373
end
7474
end
7575
for wid, entry in pairs(popup_by_winid) do

0 commit comments

Comments
 (0)