Skip to content

Commit

Permalink
Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
leoz committed Sep 22, 2023
1 parent 61b0105 commit d84d257
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Sources/CachedImage/CachedImage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ public struct CachedImage<Placeholder: View, Content: View>: View {
contentOrImage
.onAppear {
loader.setCache(cache: _imageCache.wrappedValue)
if let _url = url {
loader.load(url: _url)
if let url = url {
loader.load(url: url)
}
}
.onChange(of: url) { newUrl in
if let _url = newUrl {
loader.reload(url: _url)
if let url = newUrl {
loader.reload(url: url)
}
}
}
Expand Down

0 comments on commit d84d257

Please sign in to comment.