Skip to content

Commit

Permalink
refactor: minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
vyfor committed Dec 8, 2024
1 parent dedec5f commit f8b7e0b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/cord.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ local logger = require 'cord.util.logger'

local M = {}

function M.initialize(config)
function M.initialize()
local client = ipc.new(config.values)
client:connect(function()
local file_manager = require 'cord.util.file_manager'
Expand Down Expand Up @@ -41,7 +41,7 @@ function M.initialize(config)
end

client:close()
M.initialize(config)
M.initialize()
end)
M.producer:shutdown()
else
Expand Down Expand Up @@ -75,7 +75,7 @@ end
function M.setup(opts)
if not config:validate(opts or {}) then return end
logger.set_level(config.values.log_level)
M.initialize(config)
M.initialize()
end

return M

0 comments on commit f8b7e0b

Please sign in to comment.