Apply suggestions from code review

if the isInstalledOnly is on, we filter with `AND` instead of `OR`

Co-authored-by: Matt Kiazyk <matt@bnid.ca>
This commit is contained in:
棒棒彬_Binboy 2021-09-16 08:26:46 +08:00 committed by GitHub
parent 12cc6b11ba
commit 550cf3261c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,7 +32,7 @@ struct XcodeListView: View {
}
if isInstalledOnly {
xcodes = appState.allXcodes.filter { $0.installState.installed }
xcodes = xcodes.filter { $0.installState.installed }
}
return xcodes