Skip to content

Commit 87f51ea

Browse files
committed
Use mapnew()
1 parent a278b83 commit 87f51ea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

autoload/denops/cache.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ let s:job = v:null
55
function! denops#cache#update(...) abort
66
const l:options = extend(#{ reload: v:false }, a:0 ? a:1 : {})
77
const l:plugins = denops#_internal#plugin#list()
8-
const l:entryfiles = extend([s:mod], map(copy(l:plugins), { _, v -> v.script }))
8+
const l:entryfiles = extend([s:mod], mapnew(l:plugins, { _, v -> v.script }))
99

1010
let l:args = [g:denops#deno, 'cache']
1111

autoload/denops/plugin.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ function! denops#plugin#check_type(...) abort
8282
const l:plugins = denops#_internal#plugin#list()
8383
endif
8484
const l:scripts = l:plugins
85-
\->copy()->map({ _, v -> v.script })->filter({ _, v -> v !=# '' })
85+
\->mapnew({ _, v -> v.script })->filter({ _, v -> v !=# '' })
8686
if empty(l:scripts)
8787
call denops#_internal#echo#info("No plugins are loaded")
8888
return

0 commit comments

Comments
 (0)