Skip to content

Commit

Permalink
Fix toJsonArray() ext fun
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksandarIlic committed Oct 17, 2023
1 parent e60f2d3 commit cc61e7a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ fun NostrEvent.toJsonObject(): JsonObject {

fun List<NostrEvent>.toJsonArray(): JsonArray {
return buildJsonArray {
forEach { it.toJsonObject() }
forEach {
add(it.toJsonObject())
}
}
}

Expand Down

0 comments on commit cc61e7a

Please sign in to comment.