Skip to content

Commit

Permalink
Remove else
Browse files Browse the repository at this point in the history
  • Loading branch information
HashirRajah committed Sep 25, 2024
1 parent 2d458ee commit 49d5d38
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/android/ThumbnailsCordovaPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ public void run() {
if(!sourceFile.exists()){
callbackContext.error("The image file does not exist at path: " + options.sourcePath );
throw new IOException(String.format("The image file does not exist"));
} else if(!targetFile.exists()) {
}
if(!targetFile.exists()) {
targetFile.getParentFile().mkdirs();
targetFile.createNewFile();
}
Expand Down

0 comments on commit 49d5d38

Please sign in to comment.