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

Add exclusive control to File.contents and File.lines #502

Merged
merged 6 commits into from
Apr 8, 2018

Conversation

norio-nomura
Copy link
Collaborator

@norio-nomura norio-nomura commented Mar 14, 2018

@jpsim
Copy link
Owner

jpsim commented Mar 14, 2018

👍 with a changelog entry

}
return _contents!
}
set {
_contents = newValue
_contentsQueue.sync {
_contents = newValue
Copy link
Collaborator

Choose a reason for hiding this comment

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

should this also invalidate _lines?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

You are right.
I'll make additional changes.

Copy link
Owner

Choose a reason for hiding this comment

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

Nice catch Sam 👍

@norio-nomura
Copy link
Collaborator Author

Could you please review again?

@jpsim jpsim merged commit 1051b63 into master Apr 8, 2018
@jpsim jpsim deleted the nn-fix-swiftlint-2089 branch April 8, 2018 00:09
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