Skip to content

Commit

Permalink
chore: migration to ArrowKt 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bobeal committed Dec 11, 2024
1 parent d0e5d71 commit 8317e41
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.egm.stellio.search.authorization.web

import arrow.core.computations.ResultEffect.bind
import arrow.core.left
import arrow.core.raise.either
import com.egm.stellio.search.authorization.service.AuthorizationService
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package com.egm.stellio.shared.model

import arrow.core.Either
import arrow.core.left
import arrow.core.mapNotNull
import arrow.core.mapValuesNotNull
import arrow.core.right
import com.egm.stellio.shared.util.JsonLdUtils
import com.egm.stellio.shared.util.JsonLdUtils.JSONLD_CONTEXT
Expand Down Expand Up @@ -102,7 +102,7 @@ data class ExpandedEntity(
members.filterKeys {
includedAttributes.isEmpty() ||
JSONLD_EXPANDED_ENTITY_CORE_MEMBERS.plus(includedAttributes).contains(it)
}.mapNotNull { entry ->
}.mapValuesNotNull { entry ->
if (entry.key in JSONLD_EXPANDED_ENTITY_CORE_MEMBERS)
entry.value
else (entry.value as ExpandedAttributeInstances).filter { expandedAttributeInstance ->
Expand Down

0 comments on commit 8317e41

Please sign in to comment.