Skip to content

Commit

Permalink
extract variable
Browse files Browse the repository at this point in the history
  • Loading branch information
seakayone committed Nov 20, 2023
1 parent 5bfe7f6 commit 52e2448
Show file tree
Hide file tree
Showing 2 changed files with 112 additions and 2 deletions.
109 changes: 109 additions & 0 deletions index.html

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,10 @@ final case class KnoraProjectRepoLive(
}

private def toKnoraProject(subjectPropsTuple: (SubjectV2, ConstructPredicateObjects)): Task[KnoraProject] = {
val propsMap = subjectPropsTuple._2
val propsMap = subjectPropsTuple._2
val projectIriStr = subjectPropsTuple._1.toString
for {
projectIri <- ProjectIri.from(subjectPropsTuple._1.toString).toZIO
projectIri <- ProjectIri.from(projectIriStr).toZIO
shortname <- mapper
.getSingleOrFail[StringLiteralV2](ProjectShortname, propsMap)
.flatMap(l => Shortname.from(l.value).toZIO)
Expand Down

0 comments on commit 52e2448

Please sign in to comment.