Android: add braces to a one-line if block
There isn't an official Java style, but this seems to be consistent with everything else. Also it's weird to see one one liners without braces in Java.
This commit is contained in:
parent
6d954afddd
commit
55e4637b42
|
@ -17,7 +17,9 @@ public final class StartupHandler
|
|||
String start_file = "";
|
||||
Bundle extras = parent.getIntent().getExtras();
|
||||
if (extras != null)
|
||||
{
|
||||
start_file = extras.getString("AutoStartFile");
|
||||
}
|
||||
|
||||
if (!TextUtils.isEmpty(start_file))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue