Skip to content

Commit cd7f0dc

Browse files
committed
CSHARP-5610: Cleanup unnecessary whitespaces in the codebase
1 parent e62da2b commit cd7f0dc

File tree

69 files changed

+136
-136
lines changed

Some content is hidden

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

69 files changed

+136
-136
lines changed

benchmarks/MongoDB.Driver.Benchmarks/BenchmarkResult.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public BenchmarkResult(BenchmarkReport benchmarkReport)
4141
Name = Categories.Contains(DriverBenchmarkCategory.BulkWriteBench)
4242
? benchmarkReport.BenchmarkCase.Descriptor.WorkloadMethod.Name
4343
: benchmarkReport.BenchmarkCase.Descriptor.Type.Name;
44-
44+
4545
dataSetSize = (int)benchmarkReport.BenchmarkCase.Parameters["BenchmarkDataSetSize"];
4646
}
4747

benchmarks/MongoDB.Driver.Benchmarks/DriverBenchmarkCategory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public static class DriverBenchmarkCategory
2626
public const string ReadBench = "ReadBench";
2727
public const string SingleBench = "SingleBench";
2828
public const string WriteBench = "WriteBench";
29-
29+
3030
// not included in AllCategories as it's not part of the benchmarking spec
3131
public const string BulkWriteBench = "BulkWriteBench";
3232

benchmarks/MongoDB.Driver.Benchmarks/MultiDoc/BulkWriteMixedOpsBenchmark.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ public void Setup()
4848
for (var i = 0; i < 10000; i++)
4949
{
5050
var collectionName = __collectionNamespaces[i % __collectionNamespaces.Length];
51-
51+
5252
_clientBulkWriteMixedOpsModels.Add(new BulkWriteInsertOneModel<BsonDocument>(collectionName, smallDocument.DeepClone().AsBsonDocument));
5353
_clientBulkWriteMixedOpsModels.Add(new BulkWriteReplaceOneModel<BsonDocument>(collectionName, FilterDefinition<BsonDocument>.Empty, smallDocument.DeepClone().AsBsonDocument));
5454
_clientBulkWriteMixedOpsModels.Add(new BulkWriteDeleteOneModel<BsonDocument>(collectionName, FilterDefinition<BsonDocument>.Empty));
55-
55+
5656
_collectionBulkWriteMixedOpsModels.Add(new InsertOneModel<BsonDocument>(smallDocument.DeepClone().AsBsonDocument));
5757
_collectionBulkWriteMixedOpsModels.Add(new ReplaceOneModel<BsonDocument>(FilterDefinition<BsonDocument>.Empty, smallDocument.DeepClone().AsBsonDocument));
5858
_collectionBulkWriteMixedOpsModels.Add(new DeleteOneModel<BsonDocument>(FilterDefinition<BsonDocument>.Empty));
@@ -63,13 +63,13 @@ public void Setup()
6363
public void BeforeTask()
6464
{
6565
_client.DropDatabase(MongoConfiguration.PerfTestDatabaseName);
66-
66+
6767
_database = _client.GetDatabase(MongoConfiguration.PerfTestDatabaseName);
6868
foreach (var collectionName in __collectionNamespaces)
6969
{
7070
_database.CreateCollection(collectionName.Split('.')[1]);
7171
}
72-
72+
7373
_collection = _database.GetCollection<BsonDocument>(MongoConfiguration.PerfTestCollectionName);
7474
}
7575

@@ -78,7 +78,7 @@ public void SmallDocCollectionBulkWriteMixedOpsBenchmark()
7878
{
7979
_collection.BulkWrite(_collectionBulkWriteMixedOpsModels, new());
8080
}
81-
81+
8282
[Benchmark]
8383
public void SmallDocClientBulkWriteMixedOpsBenchmark()
8484
{

benchmarks/MongoDB.Driver.Benchmarks/MultiDoc/LargeDocBulkInsertBenchmark.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public class LargeDocBulkInsertBenchmark
3232
private BsonDocument[] _largeDocuments;
3333
private InsertOneModel<BsonDocument>[] _collectionBulkWriteInsertModels;
3434
private BulkWriteInsertOneModel<BsonDocument>[] _clientBulkWriteInsertModels;
35-
35+
3636
private static readonly CollectionNamespace __collectionNamespace =
3737
CollectionNamespace.FromFullName($"{MongoConfiguration.PerfTestDatabaseName}.{MongoConfiguration.PerfTestCollectionName}");
3838

@@ -63,13 +63,13 @@ public void InsertManyLargeBenchmark()
6363
{
6464
_collection.InsertMany(_largeDocuments, new());
6565
}
66-
66+
6767
[Benchmark]
6868
public void LargeDocCollectionBulkWriteInsertBenchmark()
6969
{
7070
_collection.BulkWrite(_collectionBulkWriteInsertModels, new());
7171
}
72-
72+
7373
[Benchmark]
7474
public void LargeDocClientBulkWriteInsertBenchmark()
7575
{

benchmarks/MongoDB.Driver.Benchmarks/MultiDoc/SmallDocBulkInsertBenchmark.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,13 @@ public void InsertManySmallBenchmark()
6262
{
6363
_collection.InsertMany(_smallDocuments, new());
6464
}
65-
65+
6666
[Benchmark]
6767
public void SmallDocCollectionBulkWriteInsertBenchmark()
6868
{
6969
_collection.BulkWrite(_collectionBulkWriteInsertModels, new());
7070
}
71-
71+
7272
[Benchmark]
7373
public void SmallDocClientBulkWriteInsertBenchmark()
7474
{

src/MongoDB.Bson/Exceptions/DuplicateBsonMemberMapAttributeException.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ namespace MongoDB.Bson
2323
/// </summary>
2424
public class DuplicateBsonMemberMapAttributeException : BsonException
2525
{
26-
// constructors
26+
// constructors
2727
/// <summary>
2828
/// Initializes a new instance of the <see cref="DuplicateBsonMemberMapAttributeException" /> class.
2929
/// </summary>

src/MongoDB.Bson/IO/BsonBinaryReaderSettings.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public UTF8Encoding Encoding
7676
}
7777

7878
/// <summary>
79-
/// Gets or sets whether to fix occurrences of the old binary subtype on input.
79+
/// Gets or sets whether to fix occurrences of the old binary subtype on input.
8080
/// </summary>
8181
public bool FixOldBinarySubTypeOnInput
8282
{
@@ -89,7 +89,7 @@ public bool FixOldBinarySubTypeOnInput
8989
}
9090

9191
/// <summary>
92-
/// Gets or sets whether to fix occurrences of the old representation of DateTime.MaxValue on input.
92+
/// Gets or sets whether to fix occurrences of the old representation of DateTime.MaxValue on input.
9393
/// </summary>
9494
public bool FixOldDateTimeMaxValueOnInput
9595
{

src/MongoDB.Bson/IO/ByteBufferStream.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ public override void WriteCString(string value)
572572
{
573573
// Compare to 128 to preserve original behavior
574574
const int maxLengthToUseCStringUtf8EncodingWith = 128;
575-
575+
576576
if (maxLength <= maxLengthToUseCStringUtf8EncodingWith)
577577
{
578578
using var rentedBuffer = ThreadStaticBuffer.RentBuffer(maxLengthToUseCStringUtf8EncodingWith);

src/MongoDB.Bson/IO/InputBufferChunkSource.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public int MaxUnpooledChunkSize
132132
get { return _maxUnpooledChunkSize; }
133133
}
134134

135-
// methods
135+
// methods
136136
/// <inheritdoc/>
137137
public void Dispose()
138138
{

src/MongoDB.Bson/ObjectModel/MaterializedOnDemandBsonDocument.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ public override IEnumerator<BsonElement> GetEnumerator()
407407
/// Returns a hash code for this instance.
408408
/// </summary>
409409
/// <returns>
410-
/// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
410+
/// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
411411
/// </returns>
412412
public override int GetHashCode()
413413
{

0 commit comments

Comments
 (0)