Permalink
Browse files

[minor] Remove useless calls to `Error` constructor

  • Loading branch information...
lpinca committed Sep 11, 2016
1 parent 2c5cbdf commit ed5d15cca2c9e6869c665b66d7a8545aa78b82dc
Showing with 0 additions and 2 deletions.
  1. +0 −2 errors.js
View
@@ -11,7 +11,6 @@ var util = require('util');
* @api public
*/
function PrimusError(message, logger) {
- Error.call(this);
Error.captureStackTrace(this, this.constructor);
this.message = message;
@@ -32,7 +31,6 @@ util.inherits(PrimusError, Error);
* @api public
*/
function ParserError(message, spark) {
- Error.call(this);
Error.captureStackTrace(this, this.constructor);
this.message = message;

0 comments on commit ed5d15c

Please sign in to comment.