Skip to content

Commit f1d29ba

Browse files
committed
💪 Use const instead of let for constant variables
1 parent 6e14ad1 commit f1d29ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

autoload/denops/_internal/plugin.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function! denops#_internal#plugin#collect() abort
2-
let l:pattern = denops#_internal#path#join(['denops', '*', 'main.ts'])
2+
const l:pattern = denops#_internal#path#join(['denops', '*', 'main.ts'])
33
let l:plugins = []
44
for l:script in globpath(&runtimepath, l:pattern, 1, 1, 1)
55
let l:name = fnamemodify(l:script, ':h:t')
@@ -12,7 +12,7 @@ function! denops#_internal#plugin#collect() abort
1212
endfunction
1313

1414
function! denops#_internal#plugin#find(name) abort
15-
let l:pattern = denops#_internal#path#join(['denops', a:name, 'main.ts'])
15+
const l:pattern = denops#_internal#path#join(['denops', a:name, 'main.ts'])
1616
for l:script in globpath(&runtimepath, l:pattern, 1, 1, 1)
1717
let l:name = fnamemodify(l:script, ':h:t')
1818
if l:name[:0] ==# '@' || !filereadable(l:script)

0 commit comments

Comments
 (0)