mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-23 17:22:16 -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();
|
private static final IOType[] values = values();
|
||||||
|
|
||||||
public static IOType fromInt(int n) {
|
public static IOType fromInt(int n) {
|
||||||
if(n >= values.length)
|
if(n >= values.length) {
|
||||||
return UNKNOWN;
|
return UNKNOWN;
|
||||||
else
|
} else {
|
||||||
return values[n];
|
return values[n];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// encrypt
|
// encrypt
|
||||||
public static final String ENCRYPT_DECRYPT_INPUT_URI = "input_uri";
|
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)
|
public static MessageStatus fromInt(int n)
|
||||||
{
|
{
|
||||||
if(n >= values.length)
|
if(n >= values.length) {
|
||||||
return UNKNOWN;
|
return UNKNOWN;
|
||||||
else
|
} else {
|
||||||
return values[n];
|
return values[n];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// possible data keys for messages
|
// possible data keys for messages
|
||||||
public static final String DATA_ERROR = "error";
|
public static final String DATA_ERROR = "error";
|
||||||
|
Loading…
Reference in New Issue
Block a user