Skip to content

Commit 04d7044

Browse files
committed
静态检查fix
1 parent d144fd0 commit 04d7044

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

grpc-server-spring-boot-autoconfigure/src/main/java/net/devh/boot/grpc/server/autoconfigure/GrpcMetadataConsulConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public void init() {
5353
if (consulRegistration != null) {
5454
final int port = grpcProperties.getPort();
5555
List<String> tags = consulRegistration.getService().getTags();
56-
tags = tags==null ? new ArrayList<>() : tags;
56+
tags = tags == null ? new ArrayList<>() : tags;
5757
if (GrpcUtils.INTER_PROCESS_DISABLE != port) {
5858
tags.add(GrpcUtils.CLOUD_DISCOVERY_METADATA_PORT + "=" + port);
5959
consulRegistration.getService().setTags(tags);

0 commit comments

Comments
 (0)