fix: Remove all instances of return undefined

Resolves #26
This commit is contained in:
Joachim Van Herwegen
2020-07-22 14:31:57 +02:00
parent ad99e1fcea
commit 4ac9e92d06
6 changed files with 6 additions and 7 deletions

View File

@@ -20,7 +20,7 @@ export class AcceptPreferenceParser extends PreferenceParser {
}
public async canHandle(): Promise<void> {
return undefined;
// Supports all HttpRequests
}
public async handle(input: HttpRequest): Promise<RepresentationPreferences> {

View File

@@ -32,7 +32,7 @@ export class SimpleBodyParser extends BodyParser {
const contentType = input.headers['content-type'];
if (!contentType) {
return undefined;
return;
}
const mediaType = contentType.split(';')[0];