Skip to content

Conversation

@ch8n
Copy link

@ch8n ch8n commented Oct 25, 2019

Hi , @BracketCove I saw seeing your code, it's awesome, I see you were using repeating function to resultToList in which only type was varying, In Kotlin you can use to take inline type of the type so dont need to repeat it, you can read more :
https://kotlinlang.org/docs/reference/inline-functions.html

I havent written test for this, but it was tested in my production code, Please do leave a review

Ch8n added 2 commits October 25, 2019 17:39
extension that will help in converting any query snapshot result to list of its pojos
extension that will help in converting any query snapshot result to list of its pojos
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.

1 participant