Skip to content

Commit

Permalink
PR comment
Browse files Browse the repository at this point in the history
  • Loading branch information
khemrajrathore committed Oct 10, 2023
1 parent 6d7a9b6 commit 6d3480e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,8 @@ trait AstForPrimitivesCreator(implicit withSchemaValidation: ValidationMode) {
}

def astForImportDirective(directive: KtImportDirective): Ast = {
val importedAs = Try(directive.getImportedName.getIdentifier).toOption.getOrElse("")
val isWildcard = importedAs == Constants.wildcardImportName || directive.getImportedName == null
val importedAs = Try(directive.getImportedName.getIdentifier).toOption
val isWildcard = importedAs.contains(Constants.wildcardImportName) || directive.getImportedName == null
val node =
NewImport()
.isWildcard(isWildcard)
Expand Down

0 comments on commit 6d3480e

Please sign in to comment.