remove unnecessary non-null assertion
This commit is contained in:
parent
18852917cb
commit
7f2641c7bb
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ class Twitch : KordExKoinComponent {
|
||||||
val replay = ReplayCollection().get(event.message) ?: return@launch
|
val replay = ReplayCollection().get(event.message) ?: return@launch
|
||||||
channel.createMessage {
|
channel.createMessage {
|
||||||
content = "Replay redeemed by: ${event.user.name}"
|
content = "Replay redeemed by: ${event.user.name}"
|
||||||
this.addFile("replay.osr", ChannelProvider(null) { ByteReadChannel(replay!!.replayFile) })
|
this.addFile("replay.osr", ChannelProvider(null) { ByteReadChannel(replay.replayFile) })
|
||||||
}
|
}
|
||||||
// remove the replay from the database
|
// remove the replay from the database
|
||||||
ReplayCollection().delete(event.message)
|
ReplayCollection().delete(event.message)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue