Skip to content

Commit

Permalink
Format fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rlazo committed Mar 15, 2024
1 parent 7f1f588 commit 7bb2aca
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

package com.google.ai.client.generativeai.common

import com.google.ai.client.generativeai.common.BuildConfig
import com.google.ai.client.generativeai.common.util.decodeToFlow
import io.ktor.client.HttpClient
import io.ktor.client.call.body
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ import kotlinx.serialization.encoding.Encoder
* When an unknown enum value is found, the enum itself will be logged to stderr with a message
* about opening an issue on GitHub regarding the new enum value.
*/
class FirstOrdinalSerializer<T : Enum<T>>(private val enumClass: KClass<T>) :
KSerializer<T> {
class FirstOrdinalSerializer<T : Enum<T>>(private val enumClass: KClass<T>) : KSerializer<T> {
override val descriptor: SerialDescriptor = buildClassSerialDescriptor("FirstOrdinalSerializer")

override fun deserialize(decoder: Decoder): T {
Expand Down

0 comments on commit 7bb2aca

Please sign in to comment.