Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove local shadow variable #202

Merged
merged 2 commits into from
May 15, 2019
Merged

Remove local shadow variable #202

merged 2 commits into from
May 15, 2019

Conversation

bolsinga
Copy link
Contributor

self.properties should be used for clarity.

Greg Bolsinga added 2 commits May 13, 2019 13:11
`self.properties` should be used for clarity.
Copy link
Collaborator

@rahul-malik rahul-malik left a comment

Choose a reason for hiding this comment

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

Is there a swiftlint / swiftformat setting we could enable for correcting this?

@rahul-malik rahul-malik merged commit a8e91d3 into pinterest:master May 15, 2019
@bolsinga bolsinga deleted the RemoveRedundantLocalVariable branch May 15, 2019 19:53
@bolsinga
Copy link
Contributor Author

bolsinga commented May 15, 2019

Is there a swiftlint / swiftformat setting we could enable for correcting this?

I do not know; I was just trying to understand the difference locally, when I realized it was a actually a shadow variable. The lint is what pulled the self off of those other references to properties.

I'm not a swift person; personally I think the lack of verbosity required and linted is a detriment to swift code understandability. I'm not a compiler; I'm a human! ;)

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.

3 participants