mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
JavaScript: Autoformat.
This commit is contained in:
@@ -58,9 +58,8 @@ where
|
||||
(
|
||||
// To avoid confusion about the meaning of "definition" and "declaration" we avoid
|
||||
// the term "definition" when the alert location is a variable declaration.
|
||||
if dead instanceof VariableDeclarator then
|
||||
msg = "The initial value of " + v.getName() + " is unused, since it is always overwritten."
|
||||
else
|
||||
msg = "This definition of " + v.getName() + " is useless, since its value is never read."
|
||||
if dead instanceof VariableDeclarator
|
||||
then msg = "The initial value of " + v.getName() + " is unused, since it is always overwritten."
|
||||
else msg = "This definition of " + v.getName() + " is useless, since its value is never read."
|
||||
)
|
||||
select dead, msg
|
||||
|
||||
Reference in New Issue
Block a user