Skip to content

Commit

Permalink
scalafmt
Browse files Browse the repository at this point in the history
  • Loading branch information
googley42 committed Sep 25, 2024
1 parent ad4a7bc commit 9eca2ad
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dynamodb/src/main/scala/zio/dynamodb/DynamoDBQuery.scala
Original file line number Diff line number Diff line change
Expand Up @@ -572,8 +572,9 @@ object DynamoDBQuery {
a: To
): DynamoDBQuery[To, Option[To]] = {
val fromEnumSchema = implicitly[Schema.Enum[From]]
val toSchema = implicitly[Schema.Record[To]]
putItem(tableName, toItem(a.asInstanceOf[From])(fromEnumSchema)).map(_.flatMap(item => fromItem(item)(toSchema).toOption))
val toSchema = implicitly[Schema.Record[To]]
putItem(tableName, toItem(a.asInstanceOf[From])(fromEnumSchema))
.map(_.flatMap(item => fromItem(item)(toSchema).toOption))
}

private[dynamodb] def toItem[A](a: A)(implicit schema: Schema[A]): Item =
Expand Down

0 comments on commit 9eca2ad

Please sign in to comment.