Skip to content

Commit 8f957f5

Browse files
committed
Simplify.
1 parent 0f98e79 commit 8f957f5

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/main/java/org/apache/commons/io/FilenameUtils.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -583,10 +583,7 @@ public static String separatorsToSystem(final String path) {
583583
if (path == null) {
584584
return null;
585585
}
586-
if (isSystemWindows()) {
587-
return separatorsToWindows(path);
588-
}
589-
return separatorsToUnix(path);
586+
return isSystemWindows() ? separatorsToWindows(path) : separatorsToUnix(path);
590587
}
591588

592589
//-----------------------------------------------------------------------

0 commit comments

Comments
 (0)