Skip to content

Commit

Permalink
Refactor: Avoid using intermediate assignment to fix 'Assignment Bran…
Browse files Browse the repository at this point in the history
…ch Condition too high' issue introduced in codebeat
  • Loading branch information
Nurgul Amat committed Oct 10, 2023
1 parent 61ef20f commit 67e3bef
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,7 @@ public void deleteFileAtPath(VirtualFile vRoot, String path) throws IOException,
VirtualFile virtualFile = vRoot.child(path);
File file = new File(virtualFile.toURI().getPath());
FilePath filePath = new FilePath(file);
File archiveRootFile = new File(vRoot.toURI());
Delete deleteInstance = new Delete(archiveRootFile);
Delete deleteInstance = new Delete(new File(vRoot.toURI()));
filePath.act(deleteInstance);
}
}

0 comments on commit 67e3bef

Please sign in to comment.