summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-10-26 14:49:51 +0800
committerGitHub <noreply@github.com>2021-10-26 14:49:51 +0800
commit2b2be24989b44d654465cbaef5f77aa93ce62f34 (patch)
treec01a84aab3a281e5cdd3f1e067ce307eea0dca2e
parent2d931bc7481e0bfbac29a06fd1f317e4f05eb702 (diff)
parentb35837c9abe2f6b79abbd5e7a58830521267f8b5 (diff)
downloadlua-language-server-2b2be24989b44d654465cbaef5f77aa93ce62f34.zip
Merge pull request #759 from Cr4xy/master
Change comment in redundant-return
-rw-r--r--script/core/diagnostics/redundant-return.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/diagnostics/redundant-return.lua b/script/core/diagnostics/redundant-return.lua
index b76d8efa..486db6cd 100644
--- a/script/core/diagnostics/redundant-return.lua
+++ b/script/core/diagnostics/redundant-return.lua
@@ -3,7 +3,7 @@ local guide = require 'parser.guide'
local lang = require 'language'
local define = require 'proto.define'
--- reports 'return' or 'return nil' at the end of functions
+-- reports 'return' without any return values at the end of functions
return function (uri, callback)
local ast = files.getState(uri)
if not ast then