Skip to content

Commit

Permalink
Avoid unnecessary string to slice conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
raunaqmorarka committed Dec 28, 2023
1 parent 88b4c48 commit 68593aa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ private boolean pruneFileScanTask(FileScanTask fileScanTask, boolean fileHasNoDe
return true;
}

if (!pathDomain.includesNullableValue(utf8Slice(fileScanTask.file().path().toString()))) {
if (!pathDomain.isAll() && !pathDomain.includesNullableValue(utf8Slice(fileScanTask.file().path().toString()))) {
return true;
}
if (!fileModifiedTimeDomain.isAll()) {
Expand Down

0 comments on commit 68593aa

Please sign in to comment.