Cleaned up realations regarding response classes
All checks were successful
continuous-integration/drone/pr Build is passing

ref #132
This commit is contained in:
2021-01-30 16:19:42 +01:00
parent 8dc2810c0c
commit ff7406e71a
16 changed files with 56 additions and 42 deletions

View File

@@ -47,7 +47,7 @@ export class ResponseScan implements IResponse {
*/
public constructor(scan: Scan) {
this.id = scan.id;
this.runner = scan.runner.toResponse();
if (scan.runner) { this.runner = scan.runner.toResponse(); }
this.distance = scan.distance;
this.valid = scan.valid;
}