Skip to content

Commit

Permalink
Tabs to spaces on affected files
Browse files Browse the repository at this point in the history
  • Loading branch information
Walter Tan de Jesus authored and Walter Tan de Jesus committed Jun 10, 2024
1 parent 48565c3 commit 8fbd52d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions LiteDB/Engine/Disk/StreamFactory/FileStreamFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
14 changes: 7 additions & 7 deletions LiteDB/Engine/Services/RebuildService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8fbd52d

Please sign in to comment.