mirror of
https://github.com/PredatH0r/ChanSort.git
synced 2026-01-17 12:52:05 +01:00
- removed superfluous parameter from SerializerBase.Save()
- added "Pooling=False" parameter to all Sqlite connection strings to prevent open file locks after closing the connection and to avoid extreme delays when using CloseAllPools()
- C# code refactoring "using var" instead of "using ( ) { }" where possible
This commit is contained in:
@@ -300,11 +300,9 @@ namespace ChanSort.Loader.Sharp
|
||||
|
||||
#region Save()
|
||||
|
||||
public override void Save(string tvOutputFile)
|
||||
public override void Save()
|
||||
{
|
||||
this.FileName = tvOutputFile;
|
||||
|
||||
using var file = new StreamWriter(new FileStream(tvOutputFile, FileMode.Create), this.encoding);
|
||||
using var file = new StreamWriter(new FileStream(this.FileName, FileMode.Create), this.encoding);
|
||||
|
||||
// write original header
|
||||
for (int i=0; i<3; i++)
|
||||
|
||||
Reference in New Issue
Block a user