minor style change

This commit is contained in:
Dave Marquard 2021-07-19 13:22:02 -07:00
parent 17759255e7
commit 57ccaeac70
No known key found for this signature in database
GPG Key ID: 46E688C4973F5C88

View File

@ -452,7 +452,7 @@ final class ReaderAPICaller: NSObject {
}
private func changeSubscription(subscriptionID: String, removeTagName: String? = nil, addTagName: String? = nil, title: String? = nil, completion: @escaping (Result<Void, Error>) -> Void) {
if removeTagName == nil && addTagName == nil && title == nil {
guard removeTagName != nil || addTagName != nil || title != nil else {
completion(.failure(ReaderAPIAccountDelegateError.invalidParameter))
return
}