[xwiki/xwiki-platform] 29156f: [Misc] Reduce Cognitive Complexity of deleteEmptyD...
Branch: refs/heads/master Home: https://github.com/xwiki/xwiki-platform Commit: 29156fa784090cab8f6c4aa38d6558ef6cc5800b https://github.com/xwiki/xwiki-platform/commit/29156fa784090cab8f6c4aa38d655... Author: Vincent Massol <[email protected]> Date: 2026-06-24 (Wed, 24 Jun 2026) Changed paths: M xwiki-platform-core/xwiki-platform-store/xwiki-platform-store-filesystem-oldcore/src/main/java/org/xwiki/store/filesystem/internal/XWikiFilesystemBlobStorePropertiesCustomizer.java Log Message: ----------- [Misc] Reduce Cognitive Complexity of deleteEmptyDirs method flagged by SonarQube * Extract the directory-children iteration and the deletion into dedicated private helper methods (areChildrenEmpty and tryDelete). * Use a guard clause to flatten the nesting of the main method. * Pure internal refactoring with no behavioral or API change. To unsubscribe from these emails, change your notification settings at https://github.com/xwiki/xwiki-platform/settings/notifications
participants (1)
-
XWiki Notifications