Skip to content

Commit c4ef505

Browse files
committed
refactor: only require utils when they are needed
1 parent 1e7fc67 commit c4ef505

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lua/gitlab/git.lua

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@ local M = {}
66
---@param command table
77
---@return string|nil, string|nil
88
local run_system = function(command)
9-
-- Load here to prevent loop
10-
local u = require("gitlab.utils")
119
local result = vim.fn.trim(vim.fn.system(command))
1210
if vim.v.shell_error ~= 0 then
13-
u.notify(result, vim.log.levels.ERROR)
11+
require("gitlab.utils").notify(result, vim.log.levels.ERROR)
1412
return nil, result
1513
end
1614
return result, nil

0 commit comments

Comments
 (0)