summaryrefslogtreecommitdiff
path: root/script/core/diagnostics/newline-call.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-09-22 17:24:44 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-09-22 17:24:44 +0800
commit32aa2dac835a0c74b82b19d83d9fd06be7a947ce (patch)
treed3e162b147ebc030de703439a7dcf94bce013fe9 /script/core/diagnostics/newline-call.lua
parenta45e980f0d51c47229d18d0f859e718d203b472f (diff)
downloadlua-language-server-32aa2dac835a0c74b82b19d83d9fd06be7a947ce.zip
cleanup
Diffstat (limited to 'script/core/diagnostics/newline-call.lua')
-rw-r--r--script/core/diagnostics/newline-call.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/script/core/diagnostics/newline-call.lua b/script/core/diagnostics/newline-call.lua
index 1c31fa8d..b28310e3 100644
--- a/script/core/diagnostics/newline-call.lua
+++ b/script/core/diagnostics/newline-call.lua
@@ -4,9 +4,8 @@ local lang = require 'language'
return function (uri, callback)
local ast = files.getState(uri)
- local lines = files.getLines(uri)
local text = files.getText(uri)
- if not ast or not lines then
+ if not ast then
return
end