Skip to content

Commit dff18a3

Browse files
authored
Merge pull request #364 from chivalry/master
Convert key search to lower case
2 parents f0d5c9f + 139fb02 commit dff18a3

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) ))
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)