Browse Source

remove unnecessary default handling

erezrokah 7 years ago
parent
commit
668331d3ea
1 changed files with 0 additions and 2 deletions
  1. 0
    2
      index.ios.js

+ 0
- 2
index.ios.js View File

@@ -39,8 +39,6 @@ class ReactNativePermissions {
39 39
   	if (!RNPTypes.includes(permission)) {
40 40
 			return Promise.reject(`ReactNativePermissions: ${permission} is not a valid permission type on iOS`);
41 41
 		}
42
-				
43
-		type = type || DEFAULTS[permission]
44 42
 		
45 43
 		return RNPermissions.getPermissionStatus(permission, type);
46 44
 	}