0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Merge pull request #2944 from jaswilli/error-cleanup

Remove redundant function declaration
This commit is contained in:
Sebastian Gierlinger 2014-06-13 12:13:44 +02:00
commit df8ba5f439

View file

@ -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;
module.exports = ValidationError;