What are the best practice for guard clauses in ko...
# announcements
d
What are the best practice for guard clauses in kotlin?
Copy code
override suspend fun send(phone: String, message: String) {
        if (phone.isEmpty()) {
            throw IllegalArgumentException("phone is required")
        }
        if (message.isEmpty()) {
            throw IllegalArgumentException("message is required")
        }