Skip to content

Commit 60998b0

Browse files
author
Ruben Bridgewater
committed
Fix missing semicolons
1 parent b81e8cf commit 60998b0

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

lib/customErrors.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
11
'use strict';
22

33
var util = require('util');
4-
var assert = require('assert')
5-
var RedisError = require('redis-parser').RedisError
6-
var ADD_STACKTRACE = false
4+
var assert = require('assert');
5+
var RedisError = require('redis-parser').RedisError;
6+
var ADD_STACKTRACE = false;
77

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

12-
RedisError.call(this, obj.message, ADD_STACKTRACE)
12+
RedisError.call(this, obj.message, ADD_STACKTRACE);
1313
Object.defineProperty(this, 'message', {
1414
value: obj.message || '',
1515
configurable: true,
1616
writable: true
1717
});
1818
if (stack || stack === undefined) {
19-
Error.captureStackTrace(this, AbortError)
19+
Error.captureStackTrace(this, AbortError);
2020
}
2121
for (var keys = Object.keys(obj), key = keys.pop(); key; key = keys.pop()) {
2222
this[key] = obj[key];
2323
}
2424
}
2525

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

30-
AbortError.call(this, obj, ADD_STACKTRACE)
30+
AbortError.call(this, obj, ADD_STACKTRACE);
3131
Object.defineProperty(this, 'message', {
3232
value: obj.message || '',
3333
configurable: true,

0 commit comments

Comments
 (0)