mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-27 11:12:15 -05:00
Added braces to if else.
This commit is contained in:
parent
17301be2ca
commit
7d27faf00c
@ -135,12 +135,13 @@ 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];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// encrypt
|
||||
public static final String ENCRYPT_DECRYPT_INPUT_URI = "input_uri";
|
||||
|
@ -44,12 +44,13 @@ 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];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// possible data keys for messages
|
||||
public static final String DATA_ERROR = "error";
|
||||
|
Loading…
Reference in New Issue
Block a user