removing semicolons

This commit is contained in:
Simon Martín 2018-03-28 10:49:50 +02:00
parent eefea03b80
commit 522363c419

View File

@ -14,11 +14,11 @@ class ErrorHandler {
getName () { getName () {
return pgErrorCodes.codeToCondition[this.err.code] || this.err.name; return pgErrorCodes.codeToCondition[this.err.code] || this.err.name;
}; }
getMessage () { getMessage () {
return this.err.message; return this.err.message;
}; }
getFields () { getFields () {
return { return {
@ -26,7 +26,7 @@ class ErrorHandler {
hint: this.err.hint, hint: this.err.hint,
context: this.err.context, context: this.err.context,
}; };
}; }
getStatus () { getStatus () {
var statusError = this.err.http_status || 400; var statusError = this.err.http_status || 400;
@ -38,15 +38,14 @@ class ErrorHandler {
} }
return statusError; return statusError;
}; }
isTimeoutError () { isTimeoutError () {
return this.err.message && ( return this.err.message && (
this.err.message.indexOf('statement timeout') > -1 || this.err.message.indexOf('statement timeout') > -1 ||
this.err.message.indexOf('RuntimeError: Execution of function interrupted by signal') > -1 this.err.message.indexOf('RuntimeError: Execution of function interrupted by signal') > -1
); );
}; }
} }
module.exports = ErrorHandler; module.exports = ErrorHandler;