Skip to content

Commit 6d3539f

Browse files
committed
Fixed checkstyle error, unnecesary ternary operator deleted.
See gh-18302
1 parent 0d3b692 commit 6d3539f

File tree

1 file changed

+1
-1
lines changed
  • spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web

1 file changed

+1
-1
lines changed

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ServerProperties.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ public void setRemoteIpHeader(String remoteIpHeader) {
537537

538538
@DeprecatedConfigurationProperty(replacement = "server.tomcat.remote-ip-valve.host-header")
539539
public String getHostHeader() {
540-
return this.remoteIpValve.getHostHeader() == null ? this.hostHeader : this.remoteIpValve.getHostHeader();
540+
return this.remoteIpValve.getHostHeader();
541541
}
542542

543543
public void setHostHeader(String hostHeader) {

0 commit comments

Comments
 (0)