From 49fc2e96ef87c8e88ef5bd5040906b4b66bef609 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Thu, 1 Sep 2016 14:48:16 +0000 Subject: [PATCH] spelling: locals in src/System.Management.Automation/engine/hostifaces --- .../engine/hostifaces/History.cs | 16 +++++++-------- .../engine/hostifaces/LocalConnection.cs | 20 +++++++++---------- .../engine/hostifaces/RunspacePoolInternal.cs | 4 ++-- 3 files changed, 20 insertions(+), 20 deletions(-) diff --git a/src/System.Management.Automation/engine/hostifaces/History.cs b/src/System.Management.Automation/engine/hostifaces/History.cs index 8d99e9ec42..3f517b0971 100644 --- a/src/System.Management.Automation/engine/hostifaces/History.cs +++ b/src/System.Management.Automation/engine/hostifaces/History.cs @@ -1742,7 +1742,7 @@ namespace Microsoft.PowerShell.Commands } set { - _countParamterSpecified = true; + _countParameterSpecified = true; _count = value; } } @@ -1755,7 +1755,7 @@ namespace Microsoft.PowerShell.Commands /// /// a boolean variable to indicate if the count parameter specified /// - private bool _countParamterSpecified = false; + private bool _countParameterSpecified = false; /// /// Specifies whether new entries to be cleared or the default old ones. @@ -1824,7 +1824,7 @@ namespace Microsoft.PowerShell.Commands /// 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; } diff --git a/src/System.Management.Automation/engine/hostifaces/LocalConnection.cs b/src/System.Management.Automation/engine/hostifaces/LocalConnection.cs index 32cc938deb..e942eb4624 100644 --- a/src/System.Management.Automation/engine/hostifaces/LocalConnection.cs +++ b/src/System.Management.Automation/engine/hostifaces/LocalConnection.cs @@ -459,16 +459,16 @@ namespace System.Management.Automation.Runspaces // appdomins for which the debug preference has to be enabled. if (processDebugPreference != null) { - List chachedAppDomainNames = null; + List cachedAppDomainNames = null; if (processDebugPreference.AppDomainNames != null && processDebugPreference.AppDomainNames.Length > 0) { - chachedAppDomainNames = new List(processDebugPreference.AppDomainNames); + cachedAppDomainNames = new List(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 chachedAppDomainNames = null; + List cachedAppDomainNames = null; if (processDebugPreference.AppDomainNames != null && processDebugPreference.AppDomainNames.Length > 0) { - chachedAppDomainNames = new List(processDebugPreference.AppDomainNames); + cachedAppDomainNames = new List(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; } } diff --git a/src/System.Management.Automation/engine/hostifaces/RunspacePoolInternal.cs b/src/System.Management.Automation/engine/hostifaces/RunspacePoolInternal.cs index f75104f2c3..c332583fe8 100644 --- a/src/System.Management.Automation/engine/hostifaces/RunspacePoolInternal.cs +++ b/src/System.Management.Automation/engine/hostifaces/RunspacePoolInternal.cs @@ -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); } }