Skip to content

Commit

Permalink
Primitive Boolean expression used in FileTarget.java
Browse files Browse the repository at this point in the history
  • Loading branch information
tanmaysharma2001 committed Apr 10, 2024
1 parent 9f4fc55 commit 283ccf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/jpeek/FileTarget.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public FileTarget(final File target, final Boolean overwrite) {
@Override
public Path toPath() throws IOException {
if (this.target.exists()) {
if (this.overwrite) {
if (Boolean.TRUE.equals(this.overwrite)) {
deleteDir(this.target);
} else {
throw new IllegalStateException(
Expand Down

0 comments on commit 283ccf6

Please sign in to comment.