Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc4b2e03

Browse files
authored
fix(utils): use proper empty check (#1380)
M.empty do not exists and is on the base utilsSigned-off-by: Tomas Slusny <slusnucky@gmail.com>
1 parentad2c759 commitc4b2e03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎lua/CopilotChat/utils/files.lua‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ M.grep = async.wrap(function(path, opts, callback)
188188
end
189189
end
190190

191-
ifM.empty(cmd)then
191+
ifvim.tbl_isempty(cmd)then
192192
error('No executable found for grep')
193193
return
194194
end
@@ -321,7 +321,7 @@ function M.uri_to_filename(uri)
321321
returnuri
322322
end
323323
localok,fname=pcall(vim.uri_to_fname,uri)
324-
ifnotokorM.empty(fname)then
324+
ifnotokornotfnameorfname==''then
325325
returnuri
326326
end
327327
returnfname

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp