Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Rename lintImplicitReturn -> lintFunctionNode

  • Loading branch information...
commit cb9a8cad4318840aa0cc915134ae166d2e21475a 1 parent dd52a20
Omar Khan authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/coffeelint.coffee
4 src/coffeelint.coffee
View
@@ -533,13 +533,13 @@ class ASTLinter
@errors.push error if error
if name == 'Assign' and node.value.constructor.name == 'Code'
- @lintImplicitReturn(node)
+ @lintFunctionNode(node)
# Return the complexity for the benefit of parent nodes.
return complexity
# Check for an implicit return, but only if it's not a constructor.
- lintImplicitReturn : (node) ->
+ lintFunctionNode : (node) ->
rule = @config.no_implicit_return
funcname = node.variable?.base?.value
if node.context == 'object' and funcname == 'constructor'
Please sign in to comment.
Something went wrong with that request. Please try again.