Add braces to if statements
This commit is contained in:
parent
8cc2c85f44
commit
b5bba45d56
|
@ -56,8 +56,9 @@ class SelectEventColorDialog(val activity: Activity, val eventType: EventType, v
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun viewClicked(color: Int) {
|
private fun viewClicked(color: Int) {
|
||||||
if (!wasInit)
|
if (!wasInit) {
|
||||||
return
|
return
|
||||||
|
}
|
||||||
|
|
||||||
callback(color)
|
callback(color)
|
||||||
dialog?.dismiss()
|
dialog?.dismiss()
|
||||||
|
|
|
@ -63,8 +63,9 @@ class SelectEventTypeColorDialog(val activity: Activity, val eventType: EventTyp
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun viewClicked(color: Int) {
|
private fun viewClicked(color: Int) {
|
||||||
if (!wasInit)
|
if (!wasInit) {
|
||||||
return
|
return
|
||||||
|
}
|
||||||
|
|
||||||
callback(color)
|
callback(color)
|
||||||
dialog?.dismiss()
|
dialog?.dismiss()
|
||||||
|
|
Loading…
Reference in New Issue