mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
spelling: locals in src/Microsoft.PowerShell.Commands.Utility
This commit is contained in:
1 parent
281f2a3ea1
commit
b2dfcf3835
5 files changed
+12
-12
No files matched your search
@@ -214,7 +214,7 @@ namespace Microsoft.PowerShell.Commands
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
public SwitchParameter Append { get; set; }
|
||||
private bool _isActuallyAppending; // true if Append=true AND the file written was not empty (or nonexistant) when the cmdlet was invoked
|
||||
private bool _isActuallyAppending; // true if Append=true AND the file written was not empty (or nonexistent) when the cmdlet was invoked
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ namespace Microsoft.PowerShell.Commands
|
||||
// Debugging to persist until Ctrl+C or Debugger 'Exit' stops cmdlet.
|
||||
private bool _debugging;
|
||||
private ManualResetEventSlim _newRunningScriptEvent = new ManualResetEventSlim(true);
|
||||
private RunspaceAvailability _previousRunspaceAvailablity = RunspaceAvailability.None;
|
||||
private RunspaceAvailability _previousRunspaceAvailability = RunspaceAvailability.None;
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -409,8 +409,8 @@ namespace Microsoft.PowerShell.Commands
|
||||
}
|
||||
}
|
||||
|
||||
RunspaceAvailability prevAvailability = _previousRunspaceAvailablity;
|
||||
_previousRunspaceAvailablity = e.RunspaceAvailability;
|
||||
RunspaceAvailability prevAvailability = _previousRunspaceAvailability;
|
||||
_previousRunspaceAvailability = e.RunspaceAvailability;
|
||||
|
||||
if ((e.RunspaceAvailability == RunspaceAvailability.Available) || (e.RunspaceAvailability == RunspaceAvailability.None))
|
||||
{
|
||||
|
||||
+3
-3
@@ -225,7 +225,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
|
||||
// Use the MarginBounds on the event to do this
|
||||
float linesPerPage = ev.MarginBounds.Height / _printFont.GetHeight(ev.Graphics);
|
||||
|
||||
if (!_printingInitalized)
|
||||
if (!_printingInitialized)
|
||||
{
|
||||
// on the first page we have to initialize the metrics for LineOutput
|
||||
|
||||
@@ -234,7 +234,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
|
||||
float w = ev.Graphics.MeasureString(s, _printFont).Width / s.Length;
|
||||
float columnsPerPage = ev.MarginBounds.Width / w;
|
||||
|
||||
_printingInitalized = true;
|
||||
_printingInitialized = true;
|
||||
_deviceRows = (int)linesPerPage;
|
||||
_deviceColumns = (int)columnsPerPage;
|
||||
|
||||
@@ -268,7 +268,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
|
||||
/// <summary>
|
||||
/// flag for one time initialization of the interface (columns, etc.)
|
||||
/// </summary>
|
||||
private bool _printingInitalized = false;
|
||||
private bool _printingInitialized = false;
|
||||
|
||||
/// <summary>
|
||||
/// callback to ask the outputter to playback its cache
|
||||
|
||||
+2
-2
@@ -55,7 +55,7 @@ namespace Microsoft.PowerShell.Commands
|
||||
request.Headers.Clear();
|
||||
foreach (string key in WebSession.Headers.Keys)
|
||||
{
|
||||
bool setHeaderViaProperty = TryMapHeaaderToProperty(webRequest, key);
|
||||
bool setHeaderViaProperty = TryMapHeaderToProperty(webRequest, key);
|
||||
|
||||
if (!setHeaderViaProperty)
|
||||
{
|
||||
@@ -150,7 +150,7 @@ namespace Microsoft.PowerShell.Commands
|
||||
return (request);
|
||||
}
|
||||
|
||||
private bool TryMapHeaaderToProperty(HttpWebRequest webRequest, string key)
|
||||
private bool TryMapHeaderToProperty(HttpWebRequest webRequest, string key)
|
||||
{
|
||||
bool setHeaderViaProperty = false;
|
||||
|
||||
|
||||
@@ -361,15 +361,15 @@ namespace Microsoft.PowerShell.Commands
|
||||
PSObject result = new PSObject();
|
||||
if (matchedProperties.Count != 0)
|
||||
{
|
||||
HashSet<string> propertNames = new HashSet<string>(StringComparer.OrdinalIgnoreCase);
|
||||
HashSet<string> propertyNames = new HashSet<string>(StringComparer.OrdinalIgnoreCase);
|
||||
|
||||
foreach (PSNoteProperty noteProperty in matchedProperties)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (!propertNames.Contains(noteProperty.Name))
|
||||
if (!propertyNames.Contains(noteProperty.Name))
|
||||
{
|
||||
propertNames.Add(noteProperty.Name);
|
||||
propertyNames.Add(noteProperty.Name);
|
||||
result.Properties.Add(noteProperty);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user