Remove unnecessary conditions

This commit is contained in:
TacoTheDank 2020-05-29 14:53:24 -04:00
parent 24f734f1b6
commit a17f24912f
3 changed files with 3 additions and 3 deletions

View File

@ -305,7 +305,7 @@ public abstract class MediaplayerActivity extends CastEnabledActivity implements
return false;
}
Playable media = controller.getMedia();
boolean isFeedMedia = media != null && (media instanceof FeedMedia);
boolean isFeedMedia = (media instanceof FeedMedia);
menu.findItem(R.id.open_feed_item).setVisible(isFeedMedia); // FeedMedia implies it belongs to a Feed

View File

@ -50,7 +50,7 @@ public abstract class FeedComponent {
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || !(o instanceof FeedComponent)) return false;
if (!(o instanceof FeedComponent)) return false;
FeedComponent that = (FeedComponent) o;

View File

@ -115,7 +115,7 @@ public class DownloadRequest implements Parcelable {
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || !(o instanceof DownloadRequest)) return false;
if (!(o instanceof DownloadRequest)) return false;
DownloadRequest that = (DownloadRequest) o;