Skip to content

Commit

Permalink
Fix missing semicolons
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruben Bridgewater committed Mar 11, 2017
1 parent b81e8cf commit 60998b0
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions lib/customErrors.js
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
'use strict';

var util = require('util');
var assert = require('assert')
var RedisError = require('redis-parser').RedisError
var ADD_STACKTRACE = false
var assert = require('assert');
var RedisError = require('redis-parser').RedisError;
var ADD_STACKTRACE = false;

function AbortError (obj, stack) {
assert(obj, 'The options argument is required')
assert.strictEqual(typeof obj, 'object', 'The options argument has to be of type object')
assert(obj, 'The options argument is required');
assert.strictEqual(typeof obj, 'object', 'The options argument has to be of type object');

RedisError.call(this, obj.message, ADD_STACKTRACE)
RedisError.call(this, obj.message, ADD_STACKTRACE);
Object.defineProperty(this, 'message', {
value: obj.message || '',
configurable: true,
writable: true
});
if (stack || stack === undefined) {
Error.captureStackTrace(this, AbortError)
Error.captureStackTrace(this, AbortError);
}
for (var keys = Object.keys(obj), key = keys.pop(); key; key = keys.pop()) {
this[key] = obj[key];
}
}

function AggregateError (obj) {
assert(obj, 'The options argument is required')
assert.strictEqual(typeof obj, 'object', 'The options argument has to be of type object')
assert(obj, 'The options argument is required');
assert.strictEqual(typeof obj, 'object', 'The options argument has to be of type object');

AbortError.call(this, obj, ADD_STACKTRACE)
AbortError.call(this, obj, ADD_STACKTRACE);
Object.defineProperty(this, 'message', {
value: obj.message || '',
configurable: true,
Expand Down

0 comments on commit 60998b0

Please sign in to comment.