Skip to content

Commit

Permalink
feature: 移除发布业务集引入的兼容代码 #896
Browse files Browse the repository at this point in the history
恢复合并代码时误删的代码
  • Loading branch information
jsonwan committed Jul 27, 2022
1 parent 6deb730 commit 61dd727
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,11 @@ public InternalResponse<List<ServiceApplicationDTO>> listApps(String scopeType)
InternalResponse.buildSuccessResp(appList);
}

appList = appList.stream().filter(app -> app.getScope().getType() == ResourceScopeTypeEnum.from(scopeType))
.collect(Collectors.toList());
if (scopeType != null) {
appList = appList.stream()
.filter(app -> app.getScope().getType() == ResourceScopeTypeEnum.from(scopeType))
.collect(Collectors.toList());
}

List<ServiceApplicationDTO> resultList =
appList.stream().map(this::convertToServiceApp).collect(Collectors.toList());
Expand Down

0 comments on commit 61dd727

Please sign in to comment.