mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-08-29 13:48:46 +02:00
Switch order of literals to prevent NullPointerException
This commit is contained in:
parent
5aec97939e
commit
2e2d981c0e
@ -185,9 +185,9 @@ public class TempFileCleanupService {
|
||||
// Check if this is a directory we should recursively scan
|
||||
if (Files.isDirectory(path)) {
|
||||
// Don't recurse into certain system directories
|
||||
if (!fileName.equals("proc")
|
||||
&& !fileName.equals("sys")
|
||||
&& !fileName.equals("dev")) {
|
||||
if (!"proc".equals(fileName)
|
||||
&& !"sys".equals(fileName)
|
||||
&& !"dev".equals(fileName)) {
|
||||
deletedCount +=
|
||||
cleanupDirectory(path, containerMode, depth + 1, maxAgeMillis);
|
||||
}
|
||||
@ -347,9 +347,9 @@ public class TempFileCleanupService {
|
||||
// Check if this is a directory we should recursively scan
|
||||
if (Files.isDirectory(path)) {
|
||||
// Don't recurse into certain system directories
|
||||
if (!fileName.equals("proc")
|
||||
&& !fileName.equals("sys")
|
||||
&& !fileName.equals("dev")) {
|
||||
if (!"proc".equals(fileName)
|
||||
&& !"sys".equals(fileName)
|
||||
&& !"dev".equals(fileName)) {
|
||||
deletedCount += cleanupDirectory(path, containerMode, depth + 1);
|
||||
}
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user