Skip to content

Commit 16f01b1

Browse files
author
Kapil Borle
committed
Fix code formatting in PlaceCloseBrace.cs
1 parent 8954204 commit 16f01b1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Rules/PlaceCloseBrace.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public class PlaceCloseBrace : ConfigurableRule
3333
///
3434
/// Default value is false.
3535
/// </summary>
36-
[ConfigurableRuleProperty(defaultValue:false)]
36+
[ConfigurableRuleProperty(defaultValue: false)]
3737
public bool NoEmptyLineBefore { get; protected set; }
3838

3939
/// <summary>
@@ -82,11 +82,11 @@ public override IEnumerable<DiagnosticRecord> AnalyzeScript(Ast ast, string file
8282

8383
var tokens = Helper.Instance.Tokens;
8484
var diagnosticRecords = new List<DiagnosticRecord>();
85-
var curlyStack = new Stack<Tuple<Token, int>> ();
85+
var curlyStack = new Stack<Tuple<Token, int>>();
8686

8787
// TODO move part common with PlaceOpenBrace to one place
8888
var tokenOps = new TokenOperations(tokens, ast);
89-
tokensToIgnore = new HashSet<Token> (tokenOps.GetCloseBracesInCommandElements());
89+
tokensToIgnore = new HashSet<Token>(tokenOps.GetCloseBracesInCommandElements());
9090

9191
// Ignore close braces that are part of a one line if-else statement
9292
// E.g. $x = if ($true) { "blah" } else { "blah blah" }
@@ -323,7 +323,7 @@ private DiagnosticRecord GetViolationForBraceShouldHaveNewLineAfter(
323323
if ((tokens[expectedNewLinePos].Kind == TokenKind.Else
324324
|| tokens[expectedNewLinePos].Kind == TokenKind.ElseIf)
325325
&& !tokensToIgnore.Contains(closeBraceToken))
326-
{
326+
{
327327
return new DiagnosticRecord(
328328
GetError(Strings.PlaceCloseBraceErrorShouldFollowNewLine),
329329
closeBraceToken.Extent,

0 commit comments

Comments
 (0)