From 6b34b5ec060a8edee788f4c7e80d52e9aba269ef Mon Sep 17 00:00:00 2001 From: Simon G Date: Fri, 13 Nov 2020 19:31:07 +0100 Subject: [PATCH] - remove bool return value and todo --- GBase/GBaseTable.cs | 8 +++----- GBase/Interfaces/IGBaseTable.cs | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/GBase/GBaseTable.cs b/GBase/GBaseTable.cs index 5d8cfb9..2c2ba1a 100644 --- a/GBase/GBaseTable.cs +++ b/GBase/GBaseTable.cs @@ -76,7 +76,7 @@ namespace GBase return lastEntry.Key; } - } + } /// @@ -87,7 +87,7 @@ namespace GBase /// /// A to cancel the asynchronous operation /// True if successful, false if not - public async Task 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 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; } /// diff --git a/GBase/Interfaces/IGBaseTable.cs b/GBase/Interfaces/IGBaseTable.cs index 505cd0f..fc73f9e 100644 --- a/GBase/Interfaces/IGBaseTable.cs +++ b/GBase/Interfaces/IGBaseTable.cs @@ -70,7 +70,7 @@ namespace GBase.Interfaces /// A to cancel the asynchronous operation /// /// /// True if successful, false if not - Task Init(Type type, string databasePath, string folderName, CancellationToken cancellationToken); + Task Init(Type type, string databasePath, string folderName, CancellationToken cancellationToken); /// /// Add a given to this