Skip to content

Commit

Permalink
Fix Swift 5.6 support
Browse files Browse the repository at this point in the history
  • Loading branch information
jflan-dd committed Aug 17, 2023
1 parent 7f5a753 commit 0f59f24
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ extension PreviewSnapshots {
private extension PreviewSnapshots.Configuration {
/// Construct a snapshot name based on the configuration name and an optional prefix.
func snapshotName(prefix: String?) -> String {
guard let prefix else { return name }
guard let prefix = prefix else { return name }
return "\(prefix)-\(name)"
}
}

0 comments on commit 0f59f24

Please sign in to comment.