We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 001f23e commit ac45cabCopy full SHA for ac45cab
android/src/main/java/io/branch/rnbranch/RNBranchModule.java
@@ -1007,16 +1007,15 @@ public void run() {
1007
}
1008
1009
private static Object getReadableMapObjectForKey(ReadableMap readableMap, String key) {
1010
- switch(readableMap.getType(key)) {
+ switch (readableMap.getType(key)) {
1011
case Null:
1012
return "Null";
1013
case Boolean:
1014
return readableMap.getBoolean(key);
1015
case Number:
1016
- if(readableMap.getDouble(key)%1==0){
+ if (readableMap.getDouble(key) % 1 == 0) {
1017
return readableMap.getInt(key);
1018
- }
1019
- else{
+ } else {
1020
return readableMap.getDouble(key);
1021
1022
case String:
0 commit comments