verifyDataFromUser() cleanup

This commit is contained in:
Stefan 2020-09-17 08:47:28 +02:00
parent 5ea77c26eb
commit 5204fdbab2

View File

@ -42,9 +42,7 @@ class SharedViewModel(application: Application): AndroidViewModel(application) {
} }
fun verifyDataFromUser(title: String, description: String): Boolean { fun verifyDataFromUser(title: String, description: String): Boolean {
return if(TextUtils.isEmpty(title) || TextUtils.isEmpty(description)){ return !(title.isEmpty() || description.isEmpty())
false
} else !(title.isEmpty() || description.isEmpty())
} }
fun parsePriority(priority: String): Priority { fun parsePriority(priority: String): Priority {