Skip to content

Commit 2dc7e76

Browse files
committed
Bump .swift-version, fix formatting
1 parent af7903f commit 2dc7e76

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.swift-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5.5
1+
6.0

Sources/ProvisionInfo/ProvisionInfo.swift

+4-4
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,10 @@ private func stringify(profile: Profile, certificates: [Certificate]) -> String
9595
func quoteString(_ string: String) -> String {
9696
let escaped = String(string.flatMap { character in
9797
switch character {
98-
case #"\"#: return #"\\"#
99-
case #"""#: return #"\\""#
100-
case "\n": return #"\\#n"#
101-
default: return String(character)
98+
case #"\"#: #"\\"#
99+
case #"""#: #"\\""#
100+
case "\n": #"\\#n"#
101+
default: String(character)
102102
}
103103
})
104104
return #""\#(escaped)""#

Sources/ProvisionInfoKit/RawProfile.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func decodeProfile(data: Data) throws -> [String: Any] {
2020
var status: OSStatus = errSecSuccess
2121

2222
status = CMSDecoderCreate(&decoder)
23-
guard status == errSecSuccess, let decoder = decoder else {
23+
guard status == errSecSuccess, let decoder else {
2424
throw ProvisionInfoError.cmsDecoderCreationFailure(status)
2525
}
2626

@@ -38,7 +38,7 @@ func decodeProfile(data: Data) throws -> [String: Any] {
3838

3939
var decodedCFData: CFData?
4040
status = CMSDecoderCopyContent(decoder, &decodedCFData)
41-
guard status == errSecSuccess, let decodedCFData = decodedCFData else {
41+
guard status == errSecSuccess, let decodedCFData else {
4242
throw ProvisionInfoError.cmsDecoderCopyFailure(status)
4343
}
4444

0 commit comments

Comments
 (0)