From 8fbd52d38e197f5042f15066f19d937266f245c2 Mon Sep 17 00:00:00 2001 From: Walter Tan de Jesus Date: Mon, 10 Jun 2024 10:22:01 +0800 Subject: [PATCH] Tabs to spaces on affected files --- .../Engine/Disk/StreamFactory/FileStreamFactory.cs | 4 ++-- LiteDB/Engine/Services/RebuildService.cs | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/LiteDB/Engine/Disk/StreamFactory/FileStreamFactory.cs b/LiteDB/Engine/Disk/StreamFactory/FileStreamFactory.cs index 5b6b288aa..cc3e95bb4 100644 --- a/LiteDB/Engine/Disk/StreamFactory/FileStreamFactory.cs +++ b/LiteDB/Engine/Disk/StreamFactory/FileStreamFactory.cs @@ -17,9 +17,9 @@ internal class FileStreamFactory : IStreamFactory private readonly string _password; private readonly bool _readonly; private readonly bool _hidden; - private readonly bool _useAesStream; + private readonly bool _useAesStream; - public FileStreamFactory(string filename, string password, bool readOnly, bool hidden, bool useAesStream = true) + public FileStreamFactory(string filename, string password, bool readOnly, bool hidden, bool useAesStream = true) { _filename = filename; _password = password; diff --git a/LiteDB/Engine/Services/RebuildService.cs b/LiteDB/Engine/Services/RebuildService.cs index 9f415b2ab..b4eaa155e 100644 --- a/LiteDB/Engine/Services/RebuildService.cs +++ b/LiteDB/Engine/Services/RebuildService.cs @@ -22,19 +22,19 @@ public RebuildService(EngineSettings settings) { _settings = settings; - // test for prior version - var bufferV7 = this.ReadFirstBytes(false); - if (FileReaderV7.IsVersion(bufferV7)) + // test for prior version + var bufferV7 = this.ReadFirstBytes(false); + if (FileReaderV7.IsVersion(bufferV7)) { _fileVersion = 7; return; } - // open, read first 16kb, and close data file - var buffer = this.ReadFirstBytes(); + // open, read first 16kb, and close data file + var buffer = this.ReadFirstBytes(); - // test for valid reader to use - _fileVersion = FileReaderV8.IsVersion(buffer) ? 8 : throw LiteException.InvalidDatabase(); + // test for valid reader to use + _fileVersion = FileReaderV8.IsVersion(buffer) ? 8 : throw LiteException.InvalidDatabase(); } public long Rebuild(RebuildOptions options)