spelling: locals in src/System.Management.Automation/engine/hostifaces

This commit is contained in:
Josh Soref
2016-09-01 14:48:16 +00:00
parent c724220af1
commit 49fc2e96ef
3 changed files with 20 additions and 20 deletions
@@ -1742,7 +1742,7 @@ namespace Microsoft.PowerShell.Commands
}
set
{
_countParamterSpecified = true;
_countParameterSpecified = true;
_count = value;
}
}
@@ -1755,7 +1755,7 @@ namespace Microsoft.PowerShell.Commands
/// <summary>
/// a boolean variable to indicate if the count parameter specified
/// </summary>
private bool _countParamterSpecified = false;
private bool _countParameterSpecified = false;
/// <summary>
/// Specifies whether new entries to be cleared or the default old ones.
@@ -1824,7 +1824,7 @@ namespace Microsoft.PowerShell.Commands
/// </summary>
private void ClearHistoryByID()
{
if (_countParamterSpecified && Count < 0)
if (_countParameterSpecified && Count < 0)
{
Exception ex =
new ArgumentException
@@ -1846,7 +1846,7 @@ namespace Microsoft.PowerShell.Commands
if (_id != null)
{
// if count parameter is not present
if (!_countParamterSpecified)
if (!_countParameterSpecified)
{
// clearing the entry for each id in the id[] parameter.
foreach (long id in _id)
@@ -1908,7 +1908,7 @@ namespace Microsoft.PowerShell.Commands
else
{
// confirmation message if all the clearhistory cmdlet is used without any parameters
if (_countParamterSpecified == false)
if (_countParameterSpecified == false)
{
string message = StringUtil.Format(HistoryStrings.ClearHistoryWarning, "Warning");// "The command would clear all the entry(s) from the session history,Are you sure you want to continue ?";
if (!ShouldProcess(message))
@@ -1933,7 +1933,7 @@ namespace Microsoft.PowerShell.Commands
private void ClearHistoryByCmdLine()
{
// throw an exception for invalid count values
if (_countParamterSpecified && Count < 0)
if (_countParameterSpecified && Count < 0)
{
Exception ex =
new ArgumentException
@@ -1956,7 +1956,7 @@ namespace Microsoft.PowerShell.Commands
if (_commandline != null)
{
// if count parameter is not present
if (!_countParamterSpecified)
if (!_countParameterSpecified)
{
foreach (string cmd in _commandline)
{
@@ -2038,7 +2038,7 @@ namespace Microsoft.PowerShell.Commands
//creates a wild card pattern
WildcardPattern wildcardpattern = WildcardPattern.Get(cmdline, WildcardOptions.IgnoreCase);
//count set to zero if not specified.
if (!_countParamterSpecified && WildcardPattern.ContainsWildcardCharacters(cmdline))
if (!_countParameterSpecified && WildcardPattern.ContainsWildcardCharacters(cmdline))
{
count = 0;
}
@@ -459,16 +459,16 @@ namespace System.Management.Automation.Runspaces
// appdomins for which the debug preference has to be enabled.
if (processDebugPreference != null)
{
List<string> chachedAppDomainNames = null;
List<string> cachedAppDomainNames = null;
if (processDebugPreference.AppDomainNames != null && processDebugPreference.AppDomainNames.Length > 0)
{
chachedAppDomainNames = new List<string>(processDebugPreference.AppDomainNames);
cachedAppDomainNames = new List<string>(processDebugPreference.AppDomainNames);
foreach (string currentAppDomainName in appDomainName)
{
if (!chachedAppDomainNames.Contains(currentAppDomainName, StringComparer.OrdinalIgnoreCase))
if (!cachedAppDomainNames.Contains(currentAppDomainName, StringComparer.OrdinalIgnoreCase))
{
chachedAppDomainNames.Add(currentAppDomainName);
cachedAppDomainNames.Add(currentAppDomainName);
iscacheUpdated = true;
}
}
@@ -476,7 +476,7 @@ namespace System.Management.Automation.Runspaces
if (iscacheUpdated)
{
DebugPreference DebugPreference = CreateDebugPreference(chachedAppDomainNames.ToArray());
DebugPreference DebugPreference = CreateDebugPreference(cachedAppDomainNames.ToArray());
debugPreferenceCache[processName] = DebugPreference;
}
}
@@ -501,17 +501,17 @@ namespace System.Management.Automation.Runspaces
// appdomins for which the debug preference has to be enabled.
if (processDebugPreference != null)
{
List<string> chachedAppDomainNames = null;
List<string> cachedAppDomainNames = null;
if (processDebugPreference.AppDomainNames != null && processDebugPreference.AppDomainNames.Length > 0)
{
chachedAppDomainNames = new List<string>(processDebugPreference.AppDomainNames);
cachedAppDomainNames = new List<string>(processDebugPreference.AppDomainNames);
foreach (string currentAppDomainName in appDomainName)
{
if (chachedAppDomainNames.Contains(currentAppDomainName, StringComparer.OrdinalIgnoreCase))
if (cachedAppDomainNames.Contains(currentAppDomainName, StringComparer.OrdinalIgnoreCase))
{
// remove requested appdomains debug preference details.
chachedAppDomainNames.Remove(currentAppDomainName);
cachedAppDomainNames.Remove(currentAppDomainName);
iscacheUpdated = true;
}
}
@@ -519,7 +519,7 @@ namespace System.Management.Automation.Runspaces
if (iscacheUpdated)
{
DebugPreference DebugPreference = CreateDebugPreference(chachedAppDomainNames.ToArray());
DebugPreference DebugPreference = CreateDebugPreference(cachedAppDomainNames.ToArray());
debugPreferenceCache[processName] = DebugPreference;
}
}
@@ -475,8 +475,8 @@ namespace System.Management.Automation.Runspaces.Internal
// of the pool.
while (pool.Count > maxRunspaces)
{
Runspace rsToDestory = pool.Pop();
DestroyRunspace(rsToDestory);
Runspace rsToDestroy = pool.Pop();
DestroyRunspace(rsToDestroy);
}
}