Browse Source

remove unnecessary default handling

erezrokah 8 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

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