Skip to content

Commit

Permalink
静态检查fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ZMRWEGO committed Jan 10, 2021
1 parent d144fd0 commit 04d7044
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public void init() {
if (consulRegistration != null) {
final int port = grpcProperties.getPort();
List<String> tags = consulRegistration.getService().getTags();
tags = tags==null ? new ArrayList<>() : tags;
tags = tags == null ? new ArrayList<>() : tags;
if (GrpcUtils.INTER_PROCESS_DISABLE != port) {
tags.add(GrpcUtils.CLOUD_DISCOVERY_METADATA_PORT + "=" + port);
consulRegistration.getService().setTags(tags);
Expand Down

0 comments on commit 04d7044

Please sign in to comment.