Skip to content

Commit a10ff10

Browse files
authored
Fix SA1028: Code should not contain trailing whitespace. Part 1. (PowerShell#26203)
1 parent 250144e commit a10ff10

74 files changed

Lines changed: 151 additions & 151 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/Microsoft.Management.UI.Internal/ManagementList/ManagementList/ColumnPicker.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ internal ColumnPicker(
6060
: this()
6161
{
6262
ArgumentNullException.ThrowIfNull(columns);
63-
63+
6464
ArgumentNullException.ThrowIfNull(availableColumns);
6565

6666
// Add visible columns to Selected list, preserving order

src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/CimJobException.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public CimJobException(string message, Exception inner) : base(message, inner)
4949
/// </summary>
5050
/// <param name="info">The <see cref="SerializationInfo"/> that holds the serialized object data about the exception being thrown.</param>
5151
/// <param name="context">The <see cref="StreamingContext"/> that contains contextual information about the source or destination.</param>
52-
[Obsolete("Legacy serialization support is deprecated since .NET 8", DiagnosticId = "SYSLIB0051")]
52+
[Obsolete("Legacy serialization support is deprecated since .NET 8", DiagnosticId = "SYSLIB0051")]
5353
protected CimJobException(
5454
SerializationInfo info,
5555
StreamingContext context)

src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/cimQuery.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ public override void FilterByAssociatedInstance(object associatedInstance, strin
315315
public override void AddQueryOption(string optionName, object optionValue)
316316
{
317317
ArgumentException.ThrowIfNullOrEmpty(optionName);
318-
ArgumentNullException.ThrowIfNull(optionValue);
318+
ArgumentNullException.ThrowIfNull(optionValue);
319319

320320
this.queryOptions[optionName] = optionValue;
321321
}

src/Microsoft.PowerShell.Commands.Management/commands/management/CIMHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ internal static string WqlQueryAll(string from)
132132
internal static T[] GetAll<T>(CimSession session, string nameSpace, string wmiClassName) where T : class, new()
133133
{
134134
ArgumentException.ThrowIfNullOrEmpty(wmiClassName);
135-
135+
136136
var rv = new List<T>();
137137

138138
try

src/Microsoft.PowerShell.Commands.Management/commands/management/Eventlog.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ private bool FiltersMatch(EventLogEntry entry)
555555
}
556556
}
557557

558-
if (!usernamematch)
558+
if (!usernamematch)
559559
{
560560
return usernamematch;
561561
}
@@ -595,7 +595,7 @@ private bool FiltersMatch(EventLogEntry entry)
595595
}
596596
}
597597

598-
if (!datematch)
598+
if (!datematch)
599599
{
600600
return datematch;
601601
}

src/Microsoft.PowerShell.Commands.Management/commands/management/GetComputerInfoCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3685,7 +3685,7 @@ public enum DeviceGuardHardwareSecure
36853685
/// Secure Memory Overwrite.
36863686
/// </summary>
36873687
SecureMemoryOverwrite = 4,
3688-
3688+
36893689
/// <summary>
36903690
/// UEFI Code Readonly.
36913691
/// </summary>

src/Microsoft.PowerShell.Commands.Management/commands/management/ResolvePathCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public SwitchParameter Relative
8181
/// </summary>
8282
[Parameter]
8383
public string RelativeBasePath
84-
{
84+
{
8585
get
8686
{
8787
return _relativeBasePath;

src/Microsoft.PowerShell.Commands.Management/commands/management/TestPathCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ protected override void ProcessRecord()
200200
{
201201
WriteObject(result);
202202
}
203-
203+
204204
continue;
205205
}
206206

src/Microsoft.PowerShell.Commands.Management/commands/management/WebServiceProxy.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ private object InstantiateWebServiceProxy(Assembly assembly)
475475
break;
476476
}
477477

478-
if (proxyType != null)
478+
if (proxyType != null)
479479
{
480480
break;
481481
}

src/Microsoft.PowerShell.Commands.Utility/commands/utility/CsvCommands.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -959,7 +959,7 @@ internal static IList<string> BuildPropertyNames(PSObject source, IList<string>
959959
/// <returns>Converted string.</returns>
960960
internal string ConvertPropertyNamesCSV(IList<string> propertyNames)
961961
{
962-
ArgumentNullException.ThrowIfNull(propertyNames);
962+
ArgumentNullException.ThrowIfNull(propertyNames);
963963

964964
_outputString.Clear();
965965
bool first = true;
@@ -994,7 +994,7 @@ internal string ConvertPropertyNamesCSV(IList<string> propertyNames)
994994
AppendStringWithEscapeAlways(_outputString, propertyName);
995995
break;
996996
case BaseCsvWritingCommand.QuoteKind.AsNeeded:
997-
997+
998998
if (propertyName.AsSpan().IndexOfAny(_delimiter, '\n', '"') != -1)
999999
{
10001000
AppendStringWithEscapeAlways(_outputString, propertyName);
@@ -1023,7 +1023,7 @@ internal string ConvertPropertyNamesCSV(IList<string> propertyNames)
10231023
/// <returns></returns>
10241024
internal string ConvertPSObjectToCSV(PSObject mshObject, IList<string> propertyNames)
10251025
{
1026-
ArgumentNullException.ThrowIfNull(propertyNames);
1026+
ArgumentNullException.ThrowIfNull(propertyNames);
10271027

10281028
_outputString.Clear();
10291029
bool first = true;
@@ -1109,7 +1109,7 @@ internal string ConvertPSObjectToCSV(PSObject mshObject, IList<string> propertyN
11091109
/// <returns>ToString() value.</returns>
11101110
internal static string GetToStringValueForProperty(PSPropertyInfo property)
11111111
{
1112-
ArgumentNullException.ThrowIfNull(property);
1112+
ArgumentNullException.ThrowIfNull(property);
11131113

11141114
string value = null;
11151115
try
@@ -1271,7 +1271,7 @@ internal sealed class ImportCsvHelper
12711271

12721272
internal ImportCsvHelper(PSCmdlet cmdlet, char delimiter, IList<string> header, string typeName, StreamReader streamReader)
12731273
{
1274-
ArgumentNullException.ThrowIfNull(cmdlet);
1274+
ArgumentNullException.ThrowIfNull(cmdlet);
12751275
ArgumentNullException.ThrowIfNull(streamReader);
12761276

12771277
_cmdlet = cmdlet;

0 commit comments

Comments
 (0)