Skip to content

Commit a78bada

Browse files
author
Xing Lin
committed
Fix new lines
1 parent 095dacc commit a78bada

File tree

1 file changed

+4
-4
lines changed
  • hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs

1 file changed

+4
-4
lines changed

hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFileSystem.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1191,10 +1191,10 @@ public Path getTrashRoot(Path path) {
11911191
}
11921192

11931193
Path targetFsUserHome = res.targetFileSystem.getHomeDirectory();
1194-
if (targetFSTrashRootPath.startsWith(mountTargetPath) && !(
1195-
mountTargetPath.equals(ROOT_PATH.toString())
1196-
&& !res.resolvedPath.equals(ROOT_PATH.toString()) && (
1197-
targetFsUserHome != null && targetFSTrashRootPath.startsWith(
1194+
if (targetFSTrashRootPath.startsWith(mountTargetPath) &&
1195+
!(mountTargetPath.equals(ROOT_PATH.toString()) &&
1196+
!res.resolvedPath.equals(ROOT_PATH.toString()) &&
1197+
(targetFsUserHome != null && targetFSTrashRootPath.startsWith(
11981198
targetFsUserHome.toUri().getPath())))) {
11991199
String relativeTrashRoot =
12001200
targetFSTrashRootPath.substring(mountTargetPath.length());

0 commit comments

Comments
 (0)