mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-12-23 23:48:51 -05:00
Added braces to if else.
This commit is contained in:
parent
17301be2ca
commit
7d27faf00c
@ -135,10 +135,11 @@ public class KeychainIntentService extends IntentService implements Progressable
|
||||
private static final IOType[] values = values();
|
||||
|
||||
public static IOType fromInt(int n) {
|
||||
if(n >= values.length)
|
||||
if(n >= values.length) {
|
||||
return UNKNOWN;
|
||||
else
|
||||
} else {
|
||||
return values[n];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -44,10 +44,11 @@ public class KeychainIntentServiceHandler extends Handler {
|
||||
|
||||
public static MessageStatus fromInt(int n)
|
||||
{
|
||||
if(n >= values.length)
|
||||
if(n >= values.length) {
|
||||
return UNKNOWN;
|
||||
else
|
||||
} else {
|
||||
return values[n];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user