Skip to content

Commit 4619ec1

Browse files
committed
tweakNoopChannelEventBusLogger
1 parent a19b37f commit 4619ec1

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

channel-event-bus/src/commonMain/kotlin/com/hoc081098/channeleventbus/ChannelEventBusLogger.kt

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,11 @@ private object StdoutChannelEventBusLogger : ChannelEventBusLogger {
7474
/**
7575
* The [ChannelEventBusLogger] that do nothing.
7676
*/
77-
@Suppress("EmptyFunctionBlock")
7877
private object NoopChannelEventBusLogger : ChannelEventBusLogger {
79-
override fun onCreated(key: ChannelEventKey<*>, bus: ChannelEventBus) {}
80-
override fun onSent(event: ChannelEvent<*>, bus: ChannelEventBus) {}
81-
override fun onStartCollection(key: ChannelEventKey<*>, bus: ChannelEventBus) {}
82-
override fun onStopCollection(key: ChannelEventKey<*>, bus: ChannelEventBus) {}
83-
override fun onClosed(key: ChannelEventKey<*>, bus: ChannelEventBus) {}
84-
override fun onClosedAll(keys: Set<ChannelEventKey<*>>, bus: ChannelEventBus) {}
78+
override fun onCreated(key: ChannelEventKey<*>, bus: ChannelEventBus) = Unit
79+
override fun onSent(event: ChannelEvent<*>, bus: ChannelEventBus) = Unit
80+
override fun onStartCollection(key: ChannelEventKey<*>, bus: ChannelEventBus) = Unit
81+
override fun onStopCollection(key: ChannelEventKey<*>, bus: ChannelEventBus) = Unit
82+
override fun onClosed(key: ChannelEventKey<*>, bus: ChannelEventBus) = Unit
83+
override fun onClosedAll(keys: Set<ChannelEventKey<*>>, bus: ChannelEventBus) = Unit
8584
}

0 commit comments

Comments
 (0)