This fixes violations of [SwiftLint's `is_disjoint` rules][0], which says that `set1.intersection(set2).isEmpty` should be replaced with `set1.isDisjoint(with: set2)`. I also took one additional step in a few cases: `isDisjoint` can be called [with any `Sequence`][1], not just a `Set`. This let me remove some conversions to `Set`. In other words: ```diff -mySet.isDisjoint(with: Set(myArray)) +mySet.isDisjoint(with: myArray) ``` [0]: https://realm.github.io/SwiftLint/is_disjoint.html [1]: https://developer.apple.com/documentation/swift/set/2853831-isdisjoint |
||
|---|---|---|
| .. | ||
| PaymentsCurrenciesImpl.swift | ||
| PaymentsHelperImpl.swift | ||