Commit 74c14767 authored by Soomin Lee's avatar Soomin Lee

VLCMediaCategoryViewController: Simplify VLCMLMedia code

parent c00f6cd7
......@@ -196,10 +196,7 @@ class VLCMediaCategoryViewController: UICollectionViewController, UICollectionVi
}
if let media = category.anyfiles[indexPath.row] as? VLCMLMedia {
playlistCell.media = media
if media.mainFile() == nil {
playlistCell.media = nil
}
playlistCell.media = (media.mainFile() != nil) ? media : nil
}
return playlistCell
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment