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 |
||
|---|---|---|
| .. | ||
| protobuf | ||
| Resources | ||
| src | ||
| tests | ||
| Utilities | ||
| .clang-format | ||
| .gitignore | ||
| .travis.yml | ||
| CONTRIBUTING.md | ||
| LICENSE | ||
| README.md | ||
SignalServiceKit
SignalServiceKit is an Objective-C library for communicating with the Signal messaging service for iOS & OS X
To use SignalServiceKit via CocoaPods add the following to your Podfile
pod 'SignalServiceKit', git: 'https://github.com/signalapp/Signal-iOS.git'