Skip to content

Commit

Permalink
chore: additional formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorbell committed Jan 7, 2025
1 parent 665619d commit 465b2bb
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package com.signify.hue.flutterreactiveble.channelhandlers
import io.flutter.plugin.common.EventChannel
import com.signify.hue.flutterreactiveble.ProtobufModel as pb

class RestoredDeviceHandler() : EventChannel.StreamHandler {
class RestoredDeviceHandler : EventChannel.StreamHandler {
private var sink: EventChannel.EventSink? = null

override fun onListen(
Expand All @@ -16,10 +16,9 @@ class RestoredDeviceHandler() : EventChannel.StreamHandler {
val message = pb.RestoredDeviceInfoCollection.newBuilder().build()
eventSink.success(message.toByteArray())
}

}

override fun onCancel(objectSink: Any?) {
sink = null
}
}
}

0 comments on commit 465b2bb

Please sign in to comment.