Skip to content

Commit

Permalink
remove not needed parameter from private method
Browse files Browse the repository at this point in the history
  • Loading branch information
hhund committed Oct 8, 2024
1 parent 0094c2a commit 26fb156
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ public Optional<String> reasonCreateAllowed(Connection connection, Identity iden
{
if (identity.isLocalIdentity() && identity.hasDsfRole(FhirServerRole.CREATE))
{
Optional<String> errors = newResourceOk(connection, newResource,
EnumSet.of(QuestionnaireResponseStatus.INPROGRESS));
Optional<String> errors = newResourceOk(newResource, EnumSet.of(QuestionnaireResponseStatus.INPROGRESS));
if (errors.isEmpty())
{
// TODO implement unique criteria based on UserTask.id when implemented as identifier
Expand All @@ -69,7 +68,7 @@ public Optional<String> reasonCreateAllowed(Connection connection, Identity iden
}
}

private Optional<String> newResourceOk(Connection connection, QuestionnaireResponse newResource,
private Optional<String> newResourceOk(QuestionnaireResponse newResource,
EnumSet<QuestionnaireResponseStatus> allowedStatus)
{
List<String> errors = new ArrayList<>();
Expand Down Expand Up @@ -166,7 +165,7 @@ public Optional<String> reasonUpdateAllowed(Connection connection, Identity iden
{
if (identity.isLocalIdentity() && identity.hasDsfRole(FhirServerRole.UPDATE))
{
Optional<String> errors = newResourceOk(connection, newResource,
Optional<String> errors = newResourceOk(newResource,
EnumSet.of(QuestionnaireResponseStatus.COMPLETED, QuestionnaireResponseStatus.STOPPED));
if (errors.isEmpty())
{
Expand Down

0 comments on commit 26fb156

Please sign in to comment.