Skip to content

Commit

Permalink
move away from deprecated getRequiredData api (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
j-roskopf authored Oct 7, 2024
1 parent 906d957 commit 2ba5072
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/com/joetr/modulemaker/ModuleMakerAction.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import com.intellij.openapi.vfs.VirtualFile

class ModuleMakerAction : AnAction() {
override fun actionPerformed(event: AnActionEvent) {
val project: Project = event.getRequiredData(CommonDataKeys.PROJECT)
val project: Project = event.project ?: return

val startingLocation: VirtualFile? = event.getData(CommonDataKeys.VIRTUAL_FILE)

Expand Down

0 comments on commit 2ba5072

Please sign in to comment.