Skip to content

Commit

Permalink
Remove useless cast
Browse files Browse the repository at this point in the history
Reduces the number of warnings when doing a gradle build.
  • Loading branch information
veyndan committed Sep 18, 2023
1 parent 8b9c315 commit fb6c82f
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import app.cash.redwood.protocol.EventSink
import app.cash.redwood.protocol.SnapshotChangeList
import app.cash.redwood.protocol.widget.ProtocolBridge
import app.cash.redwood.protocol.widget.ProtocolMismatchHandler
import app.cash.redwood.protocol.widget.ProtocolNode
import kotlinx.serialization.json.Json

/**
Expand All @@ -46,7 +45,7 @@ public class ChangeListRenderer<W : Any>(
factory = view.widgetSystem.widgetFactory(
json,
ProtocolMismatchHandler.Throwing,
) as ProtocolNode.Factory<W>,
),
eventSink = refuseAllEvents,
)
bridge.sendChanges(changeList.changes)
Expand Down

0 comments on commit fb6c82f

Please sign in to comment.