style: apply stricter ts lint rules

This commit is contained in:
Michel Jonathan Schmitz
2019-06-19 16:13:50 +02:00
parent 38f5445634
commit 45755000f3
15 changed files with 145 additions and 104 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018 StApps
* Copyright (C) 2018, 2019 StApps
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation, version 3.
@@ -39,12 +39,12 @@ export class ApiError extends Error {
// add additional data
if (typeof this.data.additionalData !== 'undefined') {
str += '\n\n' + JSON.stringify(this.data.additionalData);
str += `\n\n${JSON.stringify(this.data.additionalData)}`;
}
// add "remote" stack trace
if (typeof this.data.stack !== 'undefined') {
str += '\n\n' + this.data.stack;
str += `\n\n${this.data.stack}`;
}
return str;