Skip to content

Commit

Permalink
CB-5524 rm resource validation fix (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
yagudin10 authored Nov 25, 2024
1 parent 9a3235f commit d5cd611
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions modules/org.jkiss.utils/src/org/jkiss/utils/IOUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@
import java.nio.channels.WritableByteChannel;
import java.nio.file.*;
import java.nio.file.attribute.BasicFileAttributes;
import java.util.Comparator;
import java.util.stream.Stream;
import java.util.zip.ZipEntry;
import java.util.zip.ZipInputStream;
import java.util.zip.ZipOutputStream;
Expand Down Expand Up @@ -410,7 +408,7 @@ public static String getFileNameWithoutExtension(@NotNull Path file) {
@NotNull
public static String getPathWithoutFileExtension(@NotNull String path) {
int divPos = path.lastIndexOf('.');
if (divPos != -1) {
if (divPos > 0) {
return path.substring(0, divPos);
}
return path;
Expand Down

0 comments on commit d5cd611

Please sign in to comment.