Skip to content

Commit 9a817be

Browse files
committed
Applied formatter
1 parent def7d97 commit 9a817be

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

src/main/java/de/rub/nds/tls/subject/docker/DockerTlsServerInstance.java

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,16 +79,23 @@ protected CreateContainerCmd prepareCreateContainerCmd(CreateContainerCmd cmd) {
7979
} else {
8080
host = hostInfo.getHostname();
8181
}
82-
exposedImplementationPort = new ExposedPort(hostInfo.getPort(), hostInfo.getType().toInternetProtocol());
83-
String[] additionalCmds = parameterProfile.toParameters(host, hostInfo.getPort(), imageProperties,
84-
additionalParameters, parallelize, insecureConnection);
82+
exposedImplementationPort =
83+
new ExposedPort(hostInfo.getPort(), hostInfo.getType().toInternetProtocol());
84+
String[] additionalCmds =
85+
parameterProfile.toParameters(
86+
host,
87+
hostInfo.getPort(),
88+
imageProperties,
89+
additionalParameters,
90+
parallelize,
91+
insecureConnection);
8592
if (additionalCmds.length > 0 && !additionalCmds[0].isEmpty()) {
86-
return super.prepareCreateContainerCmd(cmd).withCmd(additionalCmds)
87-
.withExposedPorts(exposedImplementationPort);
93+
return super.prepareCreateContainerCmd(cmd)
94+
.withCmd(additionalCmds)
95+
.withExposedPorts(exposedImplementationPort);
8896
} else {
8997
return super.prepareCreateContainerCmd(cmd).withExposedPorts(exposedImplementationPort);
9098
}
91-
9299
}
93100

94101
@Override

src/main/java/de/rub/nds/tls/subject/params/ParameterProfile.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public String[] toParameters(
118118
for (Parameter param : parameterList) {
119119
if (supportsInsecure()) {
120120
if ((insecureConnection && param.getType() == ParameterType.CA_CERTIFICATE)
121-
|| (!insecureConnection && param.getType() == ParameterType.INSECURE)) {
121+
|| (!insecureConnection && param.getType() == ParameterType.INSECURE)) {
122122
// do not add CA param if we use insecure, do not add insecure
123123
// if not wanted
124124
continue;

0 commit comments

Comments
 (0)