fix(dap.hover): clean up constructors
This commit is contained in:
@@ -20,16 +20,18 @@ local instance = nil
|
||||
|
||||
---@return ow.dap.hover.Window
|
||||
function Window.get_instance()
|
||||
if not instance then
|
||||
instance = setmetatable({
|
||||
max_width = nil,
|
||||
max_height = nil,
|
||||
winid = nil,
|
||||
bufnr = nil,
|
||||
augroup = nil,
|
||||
}, Window)
|
||||
if instance then
|
||||
return instance
|
||||
end
|
||||
|
||||
instance = setmetatable({
|
||||
max_width = nil,
|
||||
max_height = nil,
|
||||
winid = nil,
|
||||
bufnr = nil,
|
||||
augroup = nil,
|
||||
}, Window)
|
||||
|
||||
return instance
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user