Skip to content

Commit

Permalink
Remove useless conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Apr 10, 2021
1 parent abcccbd commit 8edfe5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions thehive/app/org/thp/thehive/controllers/v0/Conversion.scala
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ object Conversion {
.withFieldComputed(_.id, _._id.toString)
.withFieldComputed(_.id, _._id.toString)
.withFieldConst(_._type, "alert")
.withFieldComputed(_.tags, _.tags.map(_.toString).toSet)
.withFieldComputed(_.tags, _.tags.toSet)
.withFieldComputed(_.`case`, _.caseId.map(_.toString))
.withFieldComputed(
_.status,
Expand Down Expand Up @@ -74,7 +74,7 @@ object Conversion {
.withFieldRenamed(_._createdAt, _.createdAt)
.withFieldRenamed(_._createdBy, _.createdBy)
.withFieldConst(_._type, "alert")
.withFieldComputed(_.tags, _.tags.map(_.toString).toSet)
.withFieldComputed(_.tags, _.tags.toSet)
.withFieldComputed(_.`case`, _.caseId.map(_.toString))
.withFieldComputed(
_.status,
Expand Down

0 comments on commit 8edfe5f

Please sign in to comment.