how do I kotlinize that
# getting-started
o
how do I kotlinize that
l
IMO I would return the emptyList instead of null. It eliminates the need for a null check. Use the stuff in the list, when its empty you get the no-op for free.
👍 1
t
In my eyes, Empty and null are different things: • emptyList means the filters are present, but their are simply no filters. • null means the filters are completely missing or can't be found. In this case, in this case, the filters are present, but just empty and so an empty list would be my preferred choice