refactor(comment): move require to a function

This commit is contained in:
Smirnov Oleksandr 2022-11-13 14:09:59 +02:00
parent f835464d7f
commit 68ccd20e94

View file

@ -1,6 +1,5 @@
local ts_utils = require "gopher._utils.ts"
local function generate(row, col)
local ts_utils = require "gopher._utils.ts"
local comment, ns = nil, nil
ns = ts_utils.get_package_node_at_pos(row, col, nil, false)