mirror of https://github.com/oliverbooth/X10D
🔥 Remove redundant else in ToSecureString
This commit is contained in:
parent
7c42f0632f
commit
44b6773cc8
|
@ -118,8 +118,7 @@
|
|||
{
|
||||
return null;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
SecureString result = new SecureString();
|
||||
foreach (char c in str)
|
||||
{
|
||||
|
@ -128,7 +127,6 @@
|
|||
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Converts a <see cref="SecureString"/> to a <see cref="String"/>.
|
||||
|
|
Loading…
Reference in New Issue