Skip to content

Commit

Permalink
do not remove the first node(alibaba#339) (alibaba#355)
Browse files Browse the repository at this point in the history
Do not remove the first node
  • Loading branch information
canglang1973 authored and CarpenterLee committed Dec 29, 2018
1 parent 4440918 commit feb44e7
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,7 @@ public static List<ResourceVo> fromNodeVoList(List<NodeVo> nodeVos) {
return null;
}
List<ResourceVo> list = new ArrayList<>();
boolean isFirst = true;
for (NodeVo nodeVo : nodeVos) {
if (isFirst) {
isFirst = false;
continue;
}
ResourceVo vo = new ResourceVo();
vo.parentTtId = nodeVo.getParentId();
vo.ttId = nodeVo.getId();
Expand Down

0 comments on commit feb44e7

Please sign in to comment.