Skip to content

Lint: fixed SubscriberAttributesManager#1774

Merged
NachoSoto merged 1 commit into
mainfrom
fix-lint
Jul 27, 2022
Merged

Lint: fixed SubscriberAttributesManager#1774
NachoSoto merged 1 commit into
mainfrom
fix-lint

Conversation

@NachoSoto

Copy link
Copy Markdown
Contributor

This was caused by a new rule for_where in the latest version of SwiftLint.

This was caused by a new rule `for_where` in the latest version of SwiftLint.
@NachoSoto NachoSoto requested a review from a team July 27, 2022 17:46

@aboedo aboedo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for taking care of it!

if unsyncedAttributes[key]?.value == attribute.value {
unsyncedAttributes[key]?.isSynced = true
}
for (key, attribute) in attributesToSync where unsyncedAttributes[key]?.value == attribute.value {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is pretty cool, I didn't know you could do it

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's kinda silly, way to make the language more complex for no reason 😅

@NachoSoto NachoSoto merged commit 9625959 into main Jul 27, 2022
@NachoSoto NachoSoto deleted the fix-lint branch July 27, 2022 17:54
@NachoSoto NachoSoto mentioned this pull request Jul 29, 2022
This was referenced Aug 1, 2022
NachoSoto added a commit that referenced this pull request Aug 1, 2022
### Fixes:
* `CustomerInfoResponseHandler`: return `CustomerInfo` instead of error if the response was successful (#1778) via NachoSoto (@NachoSoto)
* Error logging: `logErrorIfNeeded` no longer prints message if it's the same as the error description (#1776) via NachoSoto (@NachoSoto)
* fix another broken link in docC docs (#1777) via aboedo (@aboedo)
* fix links to restorePurchase (#1775) via aboedo (@aboedo)
* fix getProducts docs broken link (#1772) via aboedo (@aboedo)

### Improvements:
* `Logger`: wrap `message` in `@autoclosure` to avoid creating when `LogLevel` is disabled (#1781) via NachoSoto (@NachoSoto)

### Other changes:
* Lint: fixed `SubscriberAttributesManager` (#1774) via NachoSoto (@NachoSoto)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants