1
0
mirror of https://github.com/mitb-archive/filebot synced 2025-03-10 06:20:27 -04:00

Short-circuit if origin and destination is the same

This commit is contained in:
Reinhard Pointner 2019-06-01 23:27:50 +07:00
parent 658c940c45
commit 2b5e2a0785

View File

@ -798,6 +798,9 @@ public class MediaBindingBean {
Episode e = getEpisode(); Episode e = getEpisode();
XEM origin = XEM.forName(e.getSeriesInfo().getDatabase()); XEM origin = XEM.forName(e.getSeriesInfo().getDatabase());
XEM destination = XEM.forName(k); XEM destination = XEM.forName(k);
if (origin == destination) {
return e;
}
return origin.map(e, destination).orElse(e); return origin.map(e, destination).orElse(e);
} }
return undefined(k); return undefined(k);