Skip to content

Commit

Permalink
Apply linter
Browse files Browse the repository at this point in the history
  • Loading branch information
maciejburda committed Jan 17, 2025
1 parent ef1b21d commit 6ac27c2
Showing 1 changed file with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,24 +53,22 @@ internal class AnonymousIdentifierManager(
}
}

internal class AnonymousIdentifierDeserializer: Deserializer<String, UUID> {
override fun deserialize(model: String): UUID?
= UUID.fromString(model)
internal class AnonymousIdentifierDeserializer : Deserializer<String, UUID> {
override fun deserialize(model: String): UUID? = UUID.fromString(model)
}

internal class AnonymousIdentifierSerializer: Serializer<UUID> {
override fun serialize(model: UUID): String?
= model.toString()
internal class AnonymousIdentifierSerializer : Serializer<UUID> {
override fun serialize(model: UUID): String? = model.toString()
}

internal class AnonymousIdentifierReadCallback(
private val onFinished: (UUID?) -> Unit
): DataStoreReadCallback<UUID> {
) : DataStoreReadCallback<UUID> {
override fun onSuccess(dataStoreContent: DataStoreContent<UUID>?) {
onFinished(dataStoreContent?.data)
}

override fun onFailure() {
onFinished(null)
}
}
}

0 comments on commit 6ac27c2

Please sign in to comment.