Skip to content

Commit

Permalink
NullPointerException on KDOC inspection
Browse files Browse the repository at this point in the history
### What's done:
* fixed NullPointerException on KDOC inspection
Closes #1331
  • Loading branch information
Cheshiriks committed Jun 2, 2022
1 parent 70c5b4b commit 0d4aec1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ fun ASTNode.getFirstChildWithType(elementType: IElementType): ASTNode? =

/**
* Checks if a function is anonymous
* throws an error if the node type is different from FUN
* throws exception if the node type is different from FUN
*/
fun ASTNode.isAnonymousFunction(): Boolean {
require(this.elementType == FUN)
Expand Down

0 comments on commit 0d4aec1

Please sign in to comment.