Improved performance calculating "liberated" status
This commit is contained in:
parent
d5d72a13f6
commit
1375da2065
12 changed files with 92 additions and 194 deletions
|
|
@ -30,7 +30,7 @@ namespace LibationWinForm.BookLiberation
|
|||
|
||||
static async Task<StatusHandler> ProcessValidateLibraryBookAsync(IProcessable processable, LibraryBook libraryBook)
|
||||
{
|
||||
if (!await processable.ValidateAsync(libraryBook))
|
||||
if (!processable.Validate(libraryBook))
|
||||
return new StatusHandler { "Validation failed" };
|
||||
return await processable.ProcessAsync(libraryBook);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue