code analysis and cleanup (#1411)
* cleanup scanner project * cleanup infrastructure projects * cleanup ffmpeg project * cleanup core project * cleanup app project * cleanup main project * update dependencies * code cleanup
This commit is contained in:
@@ -174,7 +174,7 @@ public class ScanLocalLibraryHandler : IRequestHandler<ScanLocalLibrary, Either<
|
||||
}
|
||||
|
||||
private Task<Validation<BaseError, LocalLibrary>> LocalLibraryMustExist(ScanLocalLibrary request) =>
|
||||
_libraryRepository.Get(request.LibraryId)
|
||||
_libraryRepository.GetLibrary(request.LibraryId)
|
||||
.Map(maybeLibrary => maybeLibrary.OfType<LocalLibrary>().HeadOrNone())
|
||||
.Map(v => v.ToValidation<BaseError>($"Local library {request.LibraryId} does not exist."));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user