Skip to content

Commit

Permalink
Refactor CacheCleanerService
Browse files Browse the repository at this point in the history
  • Loading branch information
zHd4 committed Jan 4, 2025
1 parent 17b6223 commit 30e1e87
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;

public class CacheCleanerService extends Service implements Runnable {

Expand Down Expand Up @@ -79,7 +80,7 @@ private void clearCache() {

private Runnable wipeFile(TempFile tempFile) {
return () -> {
File file = new File(tempFile.getUri().getPath());
File file = new File(Objects.requireNonNull(tempFile.getUri().getPath()));

if (file.exists()) {
try {
Expand Down

0 comments on commit 30e1e87

Please sign in to comment.