File tree Expand file tree Collapse file tree
src/main/java/org/variantsync/diffdetective/diff/git Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -258,7 +258,7 @@ public boolean filter(PatchDiff patchDiff) {
258258 */
259259 public boolean filter (DiffEntry diffEntry ) {
260260 if (!allowedPaths .isEmpty () &&
261- !(isAllowedPath (diffEntry .getOldPath ()) && isAllowedPath (diffEntry .getNewPath ())))
261+ !(isAllowedPath (diffEntry .getOldPath ()) || isAllowedPath (diffEntry .getNewPath ())))
262262 {
263263 return false ;
264264 }
@@ -273,7 +273,7 @@ public boolean filter(DiffEntry diffEntry) {
273273 return false ;
274274 }
275275 if (!allowedFileExtensions .isEmpty () &&
276- !(hasAllowedExtension (diffEntry .getOldPath ()) && hasAllowedExtension (diffEntry .getNewPath ())))
276+ !(hasAllowedExtension (diffEntry .getOldPath ()) || hasAllowedExtension (diffEntry .getNewPath ())))
277277 {
278278 return false ;
279279 }
You can’t perform that action at this time.
0 commit comments