Skip to content

Commit f73e1eb

Browse files
committed
Removed empty lines and ran format and sort
1 parent 7ab3881 commit f73e1eb

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

src/main/java/dev/dsf/bpe/service/SetDownloadResourceSize.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ public class SetDownloadResourceSize extends AbstractServiceDelegate
2323
public SetDownloadResourceSize(ProcessPluginApi api, long maxDownloadResourceSizeBytes)
2424
{
2525
super(api);
26-
this.maxDownloadResourceSizeBytes = Math.min(maxDownloadResourceSizeBytes, ConstantsPing.DOWNLOAD_RESOURCE_SIZE_BYTES_DEFAULT);
26+
this.maxDownloadResourceSizeBytes = Math.min(maxDownloadResourceSizeBytes,
27+
ConstantsPing.DOWNLOAD_RESOURCE_SIZE_BYTES_DEFAULT);
2728
}
2829

2930
@Override
@@ -32,8 +33,7 @@ protected void doExecute(DelegateExecution delegateExecution, Variables variable
3233
logger.debug("Setting download resource size...");
3334

3435
long downloadResourceSizeBytes = getDownloadResourceSizeBytes(variables);
35-
variables.setLong(ExecutionVariables.DOWNLOAD_RESOURCE_SIZE_BYTES.getValue(),
36-
downloadResourceSizeBytes);
36+
variables.setLong(ExecutionVariables.DOWNLOAD_RESOURCE_SIZE_BYTES.getValue(), downloadResourceSizeBytes);
3737

3838
logger.debug("Set download resource size to " + downloadResourceSizeBytes);
3939
}
@@ -44,7 +44,7 @@ private long getDownloadResourceSizeBytes(Variables variables)
4444
variables.getStartTask(), CodeSystem.DsfPing.URL,
4545
CodeSystem.DsfPing.Code.DOWNLOAD_RESOURCE_SIZE_BYTES.getValue(), DecimalType.class);
4646

47-
return downloadResourceSizeType.map(decimalType -> decimalType.getValue().longValue()).orElse(
48-
maxDownloadResourceSizeBytes);
47+
return downloadResourceSizeType.map(decimalType -> decimalType.getValue().longValue())
48+
.orElse(maxDownloadResourceSizeBytes);
4949
}
5050
}

src/main/java/dev/dsf/bpe/service/ping/CheckPingTaskStatus.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ protected void doExecute(DelegateExecution delegateExecution, Variables variable
4545
ProcessError error;
4646
try
4747
{
48-
4948
Task pingTask = fhirWebserviceClient.withRetry(3, 1000).read(Task.class, taskId);
5049
switch (pingTask.getStatus())
5150
{
@@ -62,8 +61,6 @@ protected void doExecute(DelegateExecution delegateExecution, Variables variable
6261
+ Task.TaskStatus.INPROGRESS + ", " + Task.TaskStatus.COMPLETED + " or "
6362
+ Task.TaskStatus.FAILED);
6463
}
65-
66-
6764
}
6865
catch (WebApplicationException e)
6966
{

0 commit comments

Comments
 (0)