Thanks Rygel π
Let's say we have only sms that content transactions of type TypeATransaction. So they will all be parsed by TypeATransactionCriteria. The crieterias below will receive an empty list. we only return the remaining list.
Actually, the correct getTransactions function returns a Unit and doesn't take a list of sms π .
I tried to make it as simple as possible. But you're right. In a real code base this function is a lil bit weird lol.
I'll update the gist. Thanks for pointing that ππΎ