Skip to content

Commit

Permalink
niec engrish
Browse files Browse the repository at this point in the history
  • Loading branch information
acrylic-style committed Jun 10, 2022
1 parent 4924947 commit 560e787
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ public void invokeCallback(@Nullable File file) {
calledCallback = true;
if (file != null) {
if (options.fileType() == FileDialogScreenOptions.FileType.DIRECTORY && !file.isDirectory()) {
LOGGER.warn("Tried to invoke callback with a file that is not a directory");
LOGGER.warn("Attempted to invoke callback with a file that is not a directory");
file = null;
} else if (options.fileType() == FileDialogScreenOptions.FileType.FILE && !file.isFile()) {
LOGGER.warn("Tried to invoke callback with a directory that is not a file");
LOGGER.warn("Attempted to invoke callback with a directory that is not a file");
file = null;
} else if (!options.filter().test(file)) {
LOGGER.warn("Tried to invoke callback with a file that does not match the filter");
LOGGER.warn("Attempted to invoke callback with a file that does not match the filter");
file = null;
}
}
Expand Down

0 comments on commit 560e787

Please sign in to comment.