Skip to content

Commit

Permalink
Remove unnecessary elvis operator
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowfacts committed Jun 9, 2018
1 parent be61809 commit c64538e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ object ForgelinAutomaticEventSubscriber {
LOGGER.debug("Registering @EventBusSubscriber object for {} for mod {}", subscriber.className, mod.modId)

val subscriberClass = Class.forName(subscriber.className, false, loader) ?: continue
val kotlinClass = subscriberClass?.kotlin ?: continue
val kotlinClass = subscriberClass.kotlin
val subscriberInstance = kotlinClass.objectInstance ?: kotlinClass.companionObjectInstance ?: continue

MinecraftForge.EVENT_BUS.unregister(subscriberClass)
Expand Down

0 comments on commit c64538e

Please sign in to comment.