mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-10 09:56:19 +01:00
Removed redundant call to length for substring.
This commit is contained in:
@@ -61,7 +61,7 @@ public final class FileUtils {
|
||||
String ret = null;
|
||||
final int pos = fileName.lastIndexOf(".");
|
||||
if (pos >= 0) {
|
||||
ret = fileName.substring(pos + 1, fileName.length()).toLowerCase();
|
||||
ret = fileName.substring(pos + 1).toLowerCase();
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user