Skip to content

Commit

Permalink
feat: remove deleting files
Browse files Browse the repository at this point in the history
  • Loading branch information
micartey committed Apr 23, 2024
1 parent 1269d65 commit d24624c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/main/java/me/micartey/yawen/YawenRepository.java
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,9 @@ public Optional<ClassLoader> loadCached(String name) {
File parent = new File(".yawen");
parent.mkdir();

if(new File(parent, info.id + ".jar").exists())
if (new File(parent, info.id + ".jar").exists())
return false;

// Remove untracked files - we don't need them anymore I guess?
Arrays.stream(parent.listFiles()).forEach(File::delete);

URL website = new URL(info.browserDownloadUrl);
ReadableByteChannel byteChannel = Channels.newChannel(website.openStream());

Expand Down

0 comments on commit d24624c

Please sign in to comment.