Join Slack
Powered by
<@U614XBD5E> Use the elvis operator: replace the e...
# announcements
k
karelpeeters
07/02/2017, 6:43 AM
@dumptruckman
Use the elvis operator: replace the entire body of the function with
= messages[localizablePlugin]?.keys ?: throw IllegalArgumentException(...)
. See
https://kotlinlang.org/docs/reference/null-safety.html
for an explanation.
👍 1
d
dumptruckman
07/03/2017, 12:53 AM
karelpeeters: Ah yeah, I read about that but it's kind of a lot to get used to using.
3
Views
Open in Slack
Previous
Next