Add braces to if statements

This commit is contained in:
Naveen 2023-04-08 18:29:04 +05:30
parent 8cc2c85f44
commit b5bba45d56
2 changed files with 4 additions and 2 deletions

View File

@ -56,8 +56,9 @@ class SelectEventColorDialog(val activity: Activity, val eventType: EventType, v
}
private fun viewClicked(color: Int) {
if (!wasInit)
if (!wasInit) {
return
}
callback(color)
dialog?.dismiss()

View File

@ -63,8 +63,9 @@ class SelectEventTypeColorDialog(val activity: Activity, val eventType: EventTyp
}
private fun viewClicked(color: Int) {
if (!wasInit)
if (!wasInit) {
return
}
callback(color)
dialog?.dismiss()