mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
Add braces to if statements
This commit is contained in:
@@ -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()
|
||||
|
@@ -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()
|
||||
|
Reference in New Issue
Block a user