🔥 Remove redundant else in ToSecureString

This commit is contained in:
Oliver Booth 2019-11-16 01:47:39 +00:00
parent 7c42f0632f
commit 44b6773cc8
No known key found for this signature in database
GPG Key ID: 4B0992B2602C3778
1 changed files with 6 additions and 8 deletions

View File

@ -118,16 +118,14 @@
{ {
return null; return null;
} }
else
{
SecureString result = new SecureString();
foreach (char c in str)
{
result.AppendChar(c);
}
return result; SecureString result = new SecureString();
foreach (char c in str)
{
result.AppendChar(c);
} }
return result;
} }
/// <summary> /// <summary>