Skip to content

Commit 953dcb5

Browse files
committed
Rally fix #81
1 parent 5e5a774 commit 953dcb5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/java/nsusbloader/FilesHelper.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@ public static String getRealFolder(String location){
2828
Path locationAsPath = Paths.get(location);
2929
if (Files.notExists(locationAsPath) || Files.isRegularFile(locationAsPath))
3030
return System.getProperty("user.home");
31+
return location;
32+
}
33+
catch (Exception ignored){
34+
return System.getProperty("user.home");
3135
}
32-
catch (Exception ignored){}
33-
return location;
3436
}
3537
}

0 commit comments

Comments
 (0)