1
0
mirror of https://github.com/elisspace/autopsy.git synced 2026-09-02 01:05:55 +00:00

Fixed codacy issues

This commit is contained in:
Kelly Kelly
2019-08-15 10:30:39 -04:00
parent e1599ecb9a
commit 0aeabbb0cd

View File

@@ -162,7 +162,6 @@ final class ExtractRecycleBin extends Extract {
return;
}
String rFileName = iFile.getName().replace("$I", "$R"); //NON-NLS
String userID = getUserIDFromPath(iFile.getParentPath());
String userName = "";
if (!userID.isEmpty()) {
@@ -174,6 +173,8 @@ final class ExtractRecycleBin extends Extract {
}
List<AbstractFile> rFiles;
String rFileName = iFile.getName().replace("$I", "$R"); //NON-NLS
try {
rFiles = fileManager.findFiles(dataSource, rFileName, iFile.getParentPath());
@@ -296,7 +297,7 @@ final class ExtractRecycleBin extends Extract {
* @return String user id
*/
private String getUserIDFromPath(String iFileParentPath) {
int index = iFileParentPath.indexOf("-") - 1;
int index = iFileParentPath.indexOf('-') - 1;
if (index >= 0) {
return (iFileParentPath.substring(index)).replace("/", "");
} else {