mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-09 23:25:43 +00:00
🔥 Remove redundant else in ToSecureString
This commit is contained in:
parent
7c42f0632f
commit
44b6773cc8
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user