Skip to content

Conversation

wilhuff
Copy link
Contributor

@wilhuff wilhuff commented Dec 19, 2017

Fix warnings introduced by recent changes on this branch.

Copy link
Contributor

@morganchen12 morganchen12 left a comment

Choose a reason for hiding this comment

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

LGTM

if let data : [String:Any] = document.data() {
print("Current document: \(data)");
}
if (document.metadata.isFromCache) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Swift doesn't require parens in if statements 😛

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In my defense that was there before I merely reformatted this statement :-)

@wilhuff wilhuff merged commit 52cdf0b into firestore-api-changes Dec 19, 2017
@wilhuff wilhuff deleted the wilhuff/cleanup branch December 19, 2017 05:07
minafarid pushed a commit to minafarid/firebase-ios-sdk that referenced this pull request Jun 6, 2018
* Clean up warnings
* Remove optional parens around ifs
@firebase firebase locked and limited conversation to collaborators Nov 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants