Skip to content

Commit 72d4fa6

Browse files
committed
clean up some whitespace
1 parent 9cf0915 commit 72d4fa6

File tree

76 files changed

+268
-270
lines changed

Some content is hidden

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

76 files changed

+268
-270
lines changed

Build.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ $commitHash = $(git rev-parse --short HEAD)
1616
$buildSuffix = @{ $true = "$($suffix)-$($commitHash)"; $false = "$($branch)-$($commitHash)" }[$suffix -ne ""]
1717

1818
echo "build: Package version suffix is $suffix"
19-
echo "build: Build version suffix is $buildSuffix"
19+
echo "build: Build version suffix is $buildSuffix"
2020

2121
foreach ($src in ls src/*) {
2222
Push-Location $src
@@ -30,7 +30,7 @@ foreach ($src in ls src/*) {
3030
} else {
3131
& dotnet pack -c Release --include-source --no-build -o ..\..\artifacts
3232
}
33-
if($LASTEXITCODE -ne 0) { exit 1 }
33+
if($LASTEXITCODE -ne 0) { exit 1 }
3434

3535
Pop-Location
3636
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ type that's compatible with Serilog sinks accepting an
1818

1919
### Filtering example
2020

21-
_Serilog.Expressions_ adds `ByExcluding()` and `ByIncludingOnly()`
21+
_Serilog.Expressions_ adds `ByExcluding()` and `ByIncludingOnly()`
2222
overloads to the `Filter` configuration object that accept filter
2323
expressions:
2424

example/Sample/Program.cs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ static void TextFormattingExample1()
3232
.CreateLogger();
3333

3434
log.Information("Running {Example}", nameof(TextFormattingExample1));
35-
35+
3636
log.ForContext<Program>()
3737
.Information("Cart contains {@Items}", new[] { "Tea", "Coffee" });
38-
38+
3939
log.ForContext<Program>()
4040
.Information("Cart contains {@Items}", new[] { "Apricots" });
4141
}
@@ -49,10 +49,10 @@ static void JsonFormattingExample()
4949
.CreateLogger();
5050

5151
log.Information("Running {Example}", nameof(JsonFormattingExample));
52-
52+
5353
log.ForContext<Program>()
5454
.Information("Cart contains {@Items}", new[] { "Tea", "Coffee" });
55-
55+
5656
log.ForContext<Program>()
5757
.Warning("Cart is empty");
5858
}
@@ -67,20 +67,20 @@ static void PipelineComponentExample()
6767
.WriteTo.Console(outputTemplate:
6868
"[{Timestamp:HH:mm:ss} {Level:u3} ({SourceContext})] {Message:lj} (first item is {FirstItem}){NewLine}{Exception}")
6969
.CreateLogger();
70-
70+
7171
log.Information("Running {Example}", nameof(PipelineComponentExample));
72-
72+
7373
log.ForContext<Program>()
7474
.Information("Cart contains {@Items}", new[] { "Tea", "Coffee" });
75-
75+
7676
log.ForContext<Program>()
7777
.Information("Cart contains {@Items}", new[] { "Apricots" });
7878
}
79-
79+
8080
static void TextFormattingExample2()
8181
{
8282
// Emulates `Microsoft.Extensions.Logging`'s `ConsoleLogger`.
83-
83+
8484
var melon = new TemplateTheme(TemplateTheme.Literate, new Dictionary<TemplateThemeStyle, string>
8585
{
8686
// `Information` is dark green in MEL.
@@ -102,11 +102,11 @@ static void TextFormattingExample2()
102102

103103
var program = log.ForContext<Program>();
104104
program.Information("Host listening at {ListenUri}", "https://hello-world.local");
105-
105+
106106
program
107107
.ForContext("Scope", new[] {"Main", "TextFormattingExample2()"})
108108
.Information("HTTP {Method} {Path} responded {StatusCode} in {Elapsed:0.000} ms", "GET", "/api/hello", 200, 1.23);
109-
109+
110110
program.Warning("We've reached the end of the line");
111111
}
112112
}

src/Serilog.Expressions/Expressions/Ast/CallExpression.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public CallExpression(bool ignoreCase, string operatorName, params Expression[]
2727
}
2828

2929
public bool IgnoreCase { get; }
30-
30+
3131
public string OperatorName { get; }
3232

3333
public Expression[] Operands { get; }

src/Serilog.Expressions/Expressions/Ast/ConstantExpression.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
using Serilog.Events;
1818

1919
namespace Serilog.Expressions.Ast
20-
{
20+
{
2121
class ConstantExpression : Expression
2222
{
2323
public ConstantExpression(LogEventPropertyValue constant)
@@ -26,7 +26,7 @@ public ConstantExpression(LogEventPropertyValue constant)
2626
}
2727

2828
public LogEventPropertyValue Constant { get; }
29-
29+
3030
public override string ToString()
3131
{
3232
if (Constant is ScalarValue sv)

src/Serilog.Expressions/Expressions/Ast/ObjectExpression.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public ObjectExpression(Member[] members)
2222
{
2323
Members = members;
2424
}
25-
25+
2626
public Member[] Members { get; }
2727

2828
public override string ToString()

src/Serilog.Expressions/Expressions/Ast/PropertyMember.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public PropertyMember(string name, Expression value)
2626
Name = name;
2727
Value = value;
2828
}
29-
29+
3030
public override string ToString()
3131
{
3232
return $"{new ScalarValue(Name)}: {Value}";

src/Serilog.Expressions/Expressions/Compilation/Arrays/ConstantArrayEvaluator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ namespace Serilog.Expressions.Compilation.Arrays
2222
class ConstantArrayEvaluator : IdentityTransformer
2323
{
2424
static readonly ConstantArrayEvaluator Instance = new ConstantArrayEvaluator();
25-
25+
2626
public static Expression Evaluate(Expression expression)
2727
{
2828
return Instance.Transform(expression);

src/Serilog.Expressions/Expressions/Compilation/ExpressionCompiler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public static Expression Translate(Expression expression)
3636
actual = WildcardComprehensionTransformer.Expand(actual);
3737
return actual;
3838
}
39-
39+
4040
public static Evaluatable Compile(Expression expression, IFormatProvider? formatProvider,
4141
NameResolver nameResolver)
4242
{

src/Serilog.Expressions/Expressions/Compilation/Linq/ExpressionConstantMapper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public ExpressionConstantMapper(IDictionary<object, Expression> mapping)
2929

3030
protected override Expression VisitConstant(ConstantExpression node)
3131
{
32-
if (node.Value != null &&
32+
if (node.Value != null &&
3333
node.Value is ScalarValue sv &&
3434
_mapping.TryGetValue(sv.Value, out var substitute))
3535
return substitute;

0 commit comments

Comments
 (0)