Join Slack
Powered by
Well, in this specific intialization scenario I wo...
# announcements
o
orangy
03/21/2016, 11:26 AM
Well, in this specific intialization scenario I would just use let with elvis
Copy code
var user: User = prefs.getString(USER, null)?.let { jsonAdapter.fromJson(it) } ?: User()
Open in Slack
Previous
Next