瀏覽代碼

MediaPlayerActionSheet: Remove unnecessary return values

This silences warnings
Soomin Lee 6 年之前
父節點
當前提交
fb50243d95
共有 1 個文件被更改,包括 0 次插入2 次删除
  1. 0 2
      Sources/ActionSheet/MediaPlayerActionSheet.swift

+ 0 - 2
Sources/ActionSheet/MediaPlayerActionSheet.swift

@@ -194,7 +194,6 @@ extension MediaPlayerActionSheet: ActionSheetDataSource {
         guard let source = mediaPlayerActionSheetDataSource,
             indexPath.row < source.configurableCellModels.count else {
             preconditionFailure("MediaPlayerActionSheet: mediaPlayerActionSheetDataSource or invalid indexPath")
-            return ActionSheetCell()
         }
 
         var sheetCell: ActionSheetCell
@@ -221,7 +220,6 @@ extension MediaPlayerActionSheet: ActionSheetDelegate {
         guard let source = mediaPlayerActionSheetDataSource,
             indexPath.row < source.configurableCellModels.count else {
                 preconditionFailure("MediaPlayerActionSheet: mediaPlayerActionSheetDataSource not set")
-                return nil
         }
 
         let cellModel = source.configurableCellModels[indexPath.row]