From 54c6dab3e25e21f8abc316885079290b9db9360f Mon Sep 17 00:00:00 2001 From: Jason Williams Date: Thu, 12 Jun 2014 19:54:01 +0000 Subject: [PATCH] Remove redundant function declaration --- core/server/errors/validationerror.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/core/server/errors/validationerror.js b/core/server/errors/validationerror.js index c6d88eea9a..cfd8a7fa3e 100644 --- a/core/server/errors/validationerror.js +++ b/core/server/errors/validationerror.js @@ -1,10 +1,6 @@ // # Validation Error // Custom error class with status code and type prefilled. -function ValidationError(message) { - return new ValidationError(message, null); -} - function ValidationError(message, offendingProperty) { this.message = message; this.stack = new Error().stack; @@ -19,4 +15,4 @@ ValidationError.prototype = Object.create(Error.prototype); ValidationError.prototype.name = "ValidationError"; -module.exports = ValidationError; \ No newline at end of file +module.exports = ValidationError;