@@ -484,17 +484,11 @@ public final class MuxUpload : Hashable, Equatable {
484
484
485
485
switch inspectionResult {
486
486
case . inspectionFailure:
487
- // TODO: Request upload confirmation
488
- // before proceeding
489
-
490
- guard let nonStandardInputHandler = self . nonStandardInputHandler else {
491
- self . startNetworkTransport (
492
- videoFile: videoFile
493
- )
494
- return
495
- }
496
-
497
- let shouldCancelUpload = nonStandardInputHandler ( )
487
+ // Request upload confirmation
488
+ // before proceeding. If handler unset,
489
+ // by default do not cancel upload if
490
+ // input standardization fails
491
+ let shouldCancelUpload = self . nonStandardInputHandler ? ( ) ?? false
498
492
499
493
if !shouldCancelUpload {
500
494
self . startNetworkTransport (
@@ -546,14 +540,11 @@ public final class MuxUpload : Hashable, Equatable {
546
540
videoFile: outputURL
547
541
)
548
542
} else {
549
- guard let nonStandardInputHandler = self . nonStandardInputHandler else {
550
- self . startNetworkTransport (
551
- videoFile: videoFile
552
- )
553
- return
554
- }
555
-
556
- let shouldCancelUpload = nonStandardInputHandler ( )
543
+ // Request upload confirmation
544
+ // before proceeding. If handler unset,
545
+ // by default do not cancel upload if
546
+ // input standardization fails
547
+ let shouldCancelUpload = self . nonStandardInputHandler ? ( ) ?? false
557
548
558
549
if !shouldCancelUpload {
559
550
self . startNetworkTransport (
0 commit comments