Skip to content

Commit

Permalink
Fixes issue #1462 (#1465)
Browse files Browse the repository at this point in the history
* Added default switch case for the CreateStore method; reported in issue #1462
  • Loading branch information
mrsuciu committed Jul 23, 2021
1 parent de6f86a commit 98634b1
Showing 1 changed file with 13 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,15 +137,20 @@ public static ICertificateStore CreateStore(string storeType)
switch (storeType)
{
case CertificateStoreType.X509Store:
{
store = new X509CertificateStore();
break;
}
{
store = new X509CertificateStore();
break;
}
case CertificateStoreType.Directory:
{
store = new DirectoryCertificateStore();
break;
}
{
store = new DirectoryCertificateStore();
break;
}

default:
{
throw new ArgumentException($"Invalid store type name: {storeType}", nameof(storeType));
}
}
return store;
}
Expand Down

0 comments on commit 98634b1

Please sign in to comment.