Skip to content

Commit dec6656

Browse files
committed
Fix SwiftLint violations
1 parent e97fa1c commit dec6656

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/NSIcon/NSAsyncIcon.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public struct NSAsyncIcon: View {
125125
let data = try await URLSession.shared.data(from: url).0
126126
guard let json = try JSONSerialization.jsonObject(with: data, options: []) as? [String: Any],
127127
let results = json["results"] as? [[String: Any]],
128-
let appIconUrl = results.first?["artworkUrl512"] as? String
128+
let appIconUrl = results.first?["artworkUrl512"] as? String
129129
else { return nil }
130130
let resultUrl = URL(string: appIconUrl.replacing("512x512bb", with: "1024x1024bb"))
131131
return resultUrl
@@ -136,7 +136,7 @@ public struct NSAsyncIcon: View {
136136
do {
137137
let imageData = try await URLSession.shared.data(from: url).0
138138
guard let imageSource = CGImageSourceCreateWithData(imageData as CFData, nil),
139-
let cgImage = CGImageSourceCreateImageAtIndex(imageSource, 0, nil)
139+
let cgImage = CGImageSourceCreateImageAtIndex(imageSource, 0, nil)
140140
else { return nil }
141141
return cgImage
142142
} catch { return nil }

0 commit comments

Comments
 (0)