- remove bool return value and todo

master
Simon G 5 years ago
parent 9c160ef871
commit 6b34b5ec06
  1. 6
      GBase/GBaseTable.cs
  2. 2
      GBase/Interfaces/IGBaseTable.cs

@ -87,7 +87,7 @@ namespace GBase
/// <param name="folderName"></param>
/// <param name="cancellationToken">A <see cref="CancellationToken"/> to cancel the asynchronous operation</param>
/// <returns>True if successful, false if not</returns>
public async Task<bool> Init(Type type, string databasePath, string folderName, CancellationToken cancellationToken) //TODO: Remove bool return value?
public async Task Init(Type type, string databasePath, string folderName, CancellationToken cancellationToken)
{
Type = type;
FolderName = folderName;
@ -107,7 +107,7 @@ namespace GBase
List<IGBaseFile> files = _fileHandler.Init(databasePath, FolderName, cancellationToken);
if (files == null)
return true;
return;
foreach (var file in files) //create entries for existing files
{
@ -143,8 +143,6 @@ namespace GBase
Entries.Add(entry);
}
}
return true;
}
/// <summary>

@ -70,7 +70,7 @@ namespace GBase.Interfaces
/// <param name="cancellationToken">A <see cref="CancellationToken"/> to cancel the asynchronous operation</param>
/// ///
/// <returns>True if successful, false if not</returns>
Task<bool> Init(Type type, string databasePath, string folderName, CancellationToken cancellationToken);
Task Init(Type type, string databasePath, string folderName, CancellationToken cancellationToken);
/// <summary>
/// Add a given <see cref="IGBaseColumn"/> to this <see cref="IGBaseTable"/>

Loading…
Cancel
Save