Browse files

Rename lintImplicitReturn -> lintFunctionNode

  • Loading branch information...
1 parent dd52a20 commit cb9a8cad4318840aa0cc915134ae166d2e21475a Omar Khan committed Aug 7, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/coffeelint.coffee
View
4 src/coffeelint.coffee
@@ -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'

0 comments on commit cb9a8ca

Please sign in to comment.