Skip to content

Conversation

@rullzer
Copy link
Member

@rullzer rullzer commented Apr 26, 2018

If you now keep calling $node->getParent() you will at some point get
the RootFolder back. This is a nice termination check and will prevent
endless loops if an exit condition is slightly off.

Signed-off-by: Roeland Jago Douma [email protected]

If you now keep calling $node->getParent() you will at some point get
the RootFolder back. This is a nice termination check and will prevent
endless loops if an exit condition is slightly off.

Signed-off-by: Roeland Jago Douma <[email protected]>
@rullzer rullzer added this to the Nextcloud 14 milestone Apr 26, 2018
@codecov
Copy link

codecov bot commented Apr 26, 2018

Codecov Report

Merging #9321 into master will decrease coverage by <.01%.
The diff coverage is 75%.

@@             Coverage Diff              @@
##             master    #9321      +/-   ##
============================================
- Coverage     51.93%   51.92%   -0.01%     
- Complexity    25388    25391       +3     
============================================
  Files          1608     1608              
  Lines         95440    95443       +3     
  Branches       1394     1394              
============================================
- Hits          49563    49561       -2     
- Misses        45877    45882       +5
Impacted Files Coverage Δ Complexity Δ
lib/private/Files/Node/Node.php 80.85% <75%> (-0.31%) 65 <0> (+3)
core/js/js.js 65.41% <0%> (-0.56%) 0% <0%> (ø)
apps/files_trashbin/lib/Trashbin.php 72.7% <0%> (+0.24%) 136% <0%> (ø) ⬇️

Copy link
Member

@MorrisJobke MorrisJobke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense 👍

@MorrisJobke MorrisJobke merged commit 7306d30 into master Apr 27, 2018
@MorrisJobke MorrisJobke deleted the bugfix/noid/return_root_folder_when_at_root branch April 27, 2018 11:59
@MorrisJobke
Copy link
Member

stable12: #12059
stable13: #12060

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants