Skip to content

Commit

Permalink
fix: fix comments issues
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Apr 16, 2023
1 parent e5ad825 commit 7dd2f48
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -17,7 +17,10 @@ class CreateStoryConfigurationProducer : BaseLazyRunConfigurationProducer<DevtiC
elements: List<PsiElement>
): DevtiCreateStoryConfigure? {
if (elements.isEmpty()) return null
val commentText = elements.filterIsInstance<PsiComment>().first().text
val comments = elements.filterIsInstance<PsiComment>()
if (comments.isEmpty()) return null

val commentText = comments.first().text
val storyConfig = DevtiAnnotator.matchByString(commentText) ?: return null
return DevtiCreateStoryConfigure.fromStoryConfig(storyConfig)
}
Expand Down

0 comments on commit 7dd2f48

Please sign in to comment.