Skip to content

Commit

Permalink
rm needless paranthesis
Browse files Browse the repository at this point in the history
  • Loading branch information
seakayone committed Feb 16, 2024
1 parent 675e693 commit 19256bb
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ final case class UsersResponder(
_ <- ZIO.when(currentIsInProject.contains(projectIri))(
ZIO.fail(BadRequestException(s"User ${userIri.value} is already member of project ${projectIri.value}."))
)
newIsInProject = (currentIsInProject :+ projectIri)
newIsInProject = currentIsInProject :+ projectIri

Check warning on line 353 in webapi/src/main/scala/org/knora/webapi/responders/admin/UsersResponder.scala

View check run for this annotation

Codecov / codecov/patch

webapi/src/main/scala/org/knora/webapi/responders/admin/UsersResponder.scala#L353

Added line #L353 was not covered by tests
theChange = UserChangeRequest(projects = Some(newIsInProject))
updateUserResult <- updateUserADM(userIri, theChange)
} yield updateUserResult
Expand Down Expand Up @@ -435,7 +435,7 @@ final case class UsersResponder(
_ <- ZIO.when(currentIsInProjectAdminGroup.contains(projectIri))(
ZIO.fail(BadRequestException(s"User $userIri is already a project admin for project $projectIri."))
)
newIsInProjectAdminGroup = (currentIsInProjectAdminGroup :+ projectIri)
newIsInProjectAdminGroup = currentIsInProjectAdminGroup :+ projectIri

Check warning on line 438 in webapi/src/main/scala/org/knora/webapi/responders/admin/UsersResponder.scala

View check run for this annotation

Codecov / codecov/patch

webapi/src/main/scala/org/knora/webapi/responders/admin/UsersResponder.scala#L438

Added line #L438 was not covered by tests
theChange = UserChangeRequest(projectsAdmin = Some(newIsInProjectAdminGroup))
updateUserResult <- updateUserADM(userIri, theChange)
} yield updateUserResult
Expand Down Expand Up @@ -499,7 +499,7 @@ final case class UsersResponder(
_ <- ZIO.when(currentIsInGroup.contains(groupIri))(
ZIO.fail(BadRequestException(s"User $userIri is already member of group $groupIri."))
)
theChange = UserChangeRequest(groups = Some((currentIsInGroup :+ groupIri)))
theChange = UserChangeRequest(groups = Some(currentIsInGroup :+ groupIri))

Check warning on line 502 in webapi/src/main/scala/org/knora/webapi/responders/admin/UsersResponder.scala

View check run for this annotation

Codecov / codecov/patch

webapi/src/main/scala/org/knora/webapi/responders/admin/UsersResponder.scala#L502

Added line #L502 was not covered by tests
result <- updateUserADM(userIri, theChange)
} yield result
IriLocker.runWithIriLock(apiRequestID, userIri.value, updateTask)
Expand Down

0 comments on commit 19256bb

Please sign in to comment.