Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formatting: remove duplicate semicolons #12666

Merged
merged 1 commit into from May 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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
Expand Up @@ -93,7 +93,7 @@ internal bool IsNewerVersion(UpdatableHelpInfo helpInfo, CultureInfo culture)
return true;
}

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

/// <summary>
Expand Down