Commit 272d66cf authored by Alexander Philipp Nowosad's avatar Alexander Philipp Nowosad
Browse files

Add noinspection JSVoidFunctionReturnValueUsed to pouchdb service

parent 37e851a5
......@@ -82,6 +82,7 @@ export class PouchdbService {
request: PouchDB.Find.FindRequest<T>
): Promise<PouchDB.Find.FindResponse<T>> {
if (Object.keys(request.selector).length > 0) {
// noinspection JSVoidFunctionReturnValueUsed
return this.db
.find({
...request,
......@@ -93,6 +94,7 @@ export class PouchdbService {
PouchDB.Find.FindResponse<T>
>;
} else {
// noinspection JSVoidFunctionReturnValueUsed
return this.db
.find({
...request,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment