summaryrefslogtreecommitdiff
path: root/tools/node_modules/eslint/lib/rules/curly.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/node_modules/eslint/lib/rules/curly.js')
-rw-r--r--tools/node_modules/eslint/lib/rules/curly.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/tools/node_modules/eslint/lib/rules/curly.js b/tools/node_modules/eslint/lib/rules/curly.js
index 8eaaddc25c..93c74d11fc 100644
--- a/tools/node_modules/eslint/lib/rules/curly.js
+++ b/tools/node_modules/eslint/lib/rules/curly.js
@@ -119,8 +119,7 @@ module.exports = {
/**
* Checks if the given token is an `else` token or not.
- *
- * @param {Token} token - The token to check.
+ * @param {Token} token The token to check.
* @returns {boolean} `true` if the token is an `else` token.
*/
function isElseKeywordToken(token) {
@@ -129,7 +128,7 @@ module.exports = {
/**
* Gets the `else` keyword token of a given `IfStatement` node.
- * @param {ASTNode} node - A `IfStatement` node to get.
+ * @param {ASTNode} node A `IfStatement` node to get.
* @returns {Token} The `else` keyword token.
*/
function getElseKeyword(node) {
@@ -143,8 +142,7 @@ module.exports = {
* 1. The given node has the `alternate` node.
* 2. There is a `IfStatement` which doesn't have `alternate` node in the
* trailing statement chain of the `consequent` node.
- *
- * @param {ASTNode} node - A IfStatement node to check.
+ * @param {ASTNode} node A IfStatement node to check.
* @returns {boolean} `true` if the node requires braces of the consequent chunk.
*/
function requiresBraceOfConsequent(node) {