Skip to content

Commit fe233c1

Browse files
committed
Fix quotes
1 parent 122aa61 commit fe233c1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lua/lspconfig/configs/angularls.lua

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,20 @@ local function get_probe_dir(root_dir)
1010
end
1111

1212
local function get_angular_core_version(root_dir)
13-
local project_root = vim.fs.dirname(vim.fs.find("node_modules", { path = root_dir, upward = true })[1])
13+
local project_root = vim.fs.dirname(vim.fs.find('node_modules', { path = root_dir, upward = true })[1])
1414

15-
local package_json = project_root .. "/package.json"
15+
local package_json = project_root .. '/package.json'
1616
if not vim.loop.fs_stat(package_json) then
17-
return ""
17+
return ''
1818
end
1919

20-
local contents = io.open(package_json):read "*a"
20+
local contents = io.open(package_json):read '*a'
2121
local json = vim.json.decode(contents)
2222
if not json.dependencies then
23-
return ""
23+
return ''
2424
end
2525

26-
local angular_core_version = json.dependencies["@angular/core"]
26+
local angular_core_version = json.dependencies['@angular/core']
2727

2828
return angular_core_version
2929
end

0 commit comments

Comments
 (0)