Skip to content

Commit 139fb02

Browse files
committed
Remove unneeded check
1 parent be7d342 commit 139fb02

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

sfdx-source/apex-common/main/classes/fflib_SObjectDescribe.cls

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,6 @@ public class fflib_SObjectDescribe {
7777
private fflib_SObjectDescribe(Schema.SObjectType token){
7878
if(token == null)
7979
throw new InvalidDescribeException('Invalid SObject type: null');
80-
if(instanceCache.containsKey( String.valueOf(token).toLowerCase() ))
81-
throw new DuplicateDescribeException(token + ' is already in the describe cache');
8280
this.token = token;
8381
instanceCache.put( String.valueOf(token).toLowerCase() , this);
8482
}

0 commit comments

Comments
 (0)