Last active
October 4, 2017 03:40
-
-
Save SUPERCILEX/14999b4fe7c85a7e237789147adcab55 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FirebaseFirestore.getInstance() | |
.collection("teams") | |
.addSnapshotListener { snapshot: QuerySnapshot?, e: FirebaseFirestoreException? -> | |
if (e != null) { | |
FirebaseCrash.report(e) | |
return@addSnapshotListener | |
} | |
snapshot!! // The parameters follow a XOR pattern so this is perfectly safe | |
// Do stuff | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment