Skip to content

Commit

Permalink
Formatting: remove duplicate semicolons (#12666)
Browse files Browse the repository at this point in the history
  • Loading branch information
xtqqczze committed May 17, 2020
1 parent 4523ea3 commit 056b9d7
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 14 deletions.
Expand Up @@ -592,7 +592,7 @@ private void ProcessGetProvider()
}

logQuery.Session = eventLogSession;
logQuery.ReverseDirection = !_oldest; ;
logQuery.ReverseDirection = !_oldest;

ReadEvents(logQuery);
}
Expand Down
Expand Up @@ -188,7 +188,7 @@ private bool IsValidFileForUnblocking(string resolvedpath)
}
else
{
isValidUnblockableFile = true; ;
isValidUnblockableFile = true;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.WSMan.Management/ConfigProvider.cs
Expand Up @@ -3336,7 +3336,7 @@ private string SetSchemaPath(string uri)
/// <returns></returns>
private string NormalizePath(string path, string host)
{
string uri = string.Empty; ;
string uri = string.Empty;
if (path.StartsWith(host, StringComparison.OrdinalIgnoreCase))
{
if (path.EndsWith(WSManStringLiterals.DefaultPathSeparator.ToString(), StringComparison.OrdinalIgnoreCase))
Expand Down
Expand Up @@ -2413,7 +2413,7 @@ private static bool GetResourceMethodsLineNumber(TypeDefinitionAst typeDefinitio
const string setMethodName = "Set";
const string testMethodName = "Test";

methodsLinePosition = new Dictionary<string, int>(); ;
methodsLinePosition = new Dictionary<string, int>();
foreach (var member in typeDefinitionAst.Members)
{
var functionMemberAst = member as FunctionMemberAst;
Expand Down
Expand Up @@ -344,7 +344,7 @@ private static void ProcessUnknownViewName(TerminatingErrorContext errorContext,
unKnowViewFormatStringBuilder.Append(StringUtil.Format(FormatAndOut_format_xxx.NonExistingViewNameError, formatTypeName, so.BaseObject.GetType()));
}

msg = unKnowViewFormatStringBuilder.ToString(); ;
msg = unKnowViewFormatStringBuilder.ToString();
}

ErrorRecord errorRecord = new ErrorRecord(
Expand Down
Expand Up @@ -173,7 +173,7 @@ private static string GetObjectName(object x, PSPropertyExpressionFactory expres
PSPropertyExpressionResult r = PSObjectHelper.GetDisplayName(PSObjectHelper.AsPSObject(x), expressionFactory);
if ((r != null) && (r.Exception == null))
{
objName = PSObjectHelper.AsPSObject(r.Result).ToString(); ;
objName = PSObjectHelper.AsPSObject(r.Result).ToString();
}
else
{
Expand Down
Expand Up @@ -545,7 +545,7 @@ private Expression MakeIDispatchInvokeTarget()
exprs.Add(System.Management.Automation.Language.ExpressionCache.AutomationNullConstant);
}

return Expression.Block(vars, exprs); ;
return Expression.Block(vars, exprs);
}

/// <summary>
Expand Down
Expand Up @@ -222,7 +222,7 @@ protected override void StopProcessing()
private bool CheckForDebuggableJob()
{
// Check passed in job object.
bool debuggableJobFound = GetJobDebuggable(_job); ;
bool debuggableJobFound = GetJobDebuggable(_job);

if (!debuggableJobFound)
{
Expand Down
Expand Up @@ -2661,7 +2661,7 @@ private static SafePipeHandle GetNamedPipeHandle(string pipeName)
byte[] securityDescBuffer = new byte[securityDesc.BinaryLength];
securityDesc.GetBinaryForm(securityDescBuffer, 0);
securityDescHandle = GCHandle.Alloc(securityDescBuffer, GCHandleType.Pinned);
securityAttributes = NamedPipeNative.GetSecurityAttributes(securityDescHandle.Value, true); ;
securityAttributes = NamedPipeNative.GetSecurityAttributes(securityDescHandle.Value, true);
}

// Create async named pipe.
Expand Down
Expand Up @@ -2625,15 +2625,15 @@ private void ExitDebugMode(DebuggerResumeAction resumeAction)

private void SubscribeWrappedDebugger(Debugger wrappedDebugger)
{
wrappedDebugger.DebuggerStop += HandleDebuggerStop; ;
wrappedDebugger.BreakpointUpdated += HandleBreakpointUpdated; ;
wrappedDebugger.DebuggerStop += HandleDebuggerStop;
wrappedDebugger.BreakpointUpdated += HandleBreakpointUpdated;
wrappedDebugger.NestedDebuggingCancelledEvent += HandleNestedDebuggingCancelEvent;
}

private void UnsubscribeWrappedDebugger(Debugger wrappedDebugger)
{
wrappedDebugger.DebuggerStop -= HandleDebuggerStop; ;
wrappedDebugger.BreakpointUpdated -= HandleBreakpointUpdated; ;
wrappedDebugger.DebuggerStop -= HandleDebuggerStop;
wrappedDebugger.BreakpointUpdated -= HandleBreakpointUpdated;
wrappedDebugger.NestedDebuggingCancelledEvent -= HandleNestedDebuggingCancelEvent;
}

Expand Down
2 changes: 1 addition & 1 deletion src/System.Management.Automation/help/UpdatableHelpInfo.cs
Expand Up @@ -93,7 +93,7 @@ internal bool IsNewerVersion(UpdatableHelpInfo helpInfo, CultureInfo culture)
return true;
}

return v1 > v2; ;
return v1 > v2;
}

/// <summary>
Expand Down

0 comments on commit 056b9d7

Please sign in to comment.