Skip to content

Commit

Permalink
build: add escape from failed guard condition
Browse files Browse the repository at this point in the history
precondition gets elided by optimizer under certain optimization modes
and results in a build error. Replace with fatalError always remains
  • Loading branch information
andrewjl-mux committed Jun 20, 2024
1 parent 8457ea3 commit 00151ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ extension DirectUpload {
options: DirectUploadOptions
) {
guard let urlAsset = inputAsset as? AVURLAsset else {
precondition(
false,
fatalError(
"Only assets with URLs can be uploaded"
)
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/MuxUploadSDK/PublicAPI/SemanticVersion.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public struct SemanticVersion {
/// Minor version component.
public static let minor = 0
/// Patch version component.
public static let patch = 0
public static let patch = 1

/// String form of the version number in the format X.Y.Z
/// where X, Y, and Z are the major, minor, and patch
Expand Down

0 comments on commit 00151ac

Please sign in to comment.