You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-09 00:22:08 +03:00
Fix missing semicolons
This commit is contained in:
@@ -1,22 +1,22 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var util = require('util');
|
var util = require('util');
|
||||||
var assert = require('assert')
|
var assert = require('assert');
|
||||||
var RedisError = require('redis-parser').RedisError
|
var RedisError = require('redis-parser').RedisError;
|
||||||
var ADD_STACKTRACE = false
|
var ADD_STACKTRACE = false;
|
||||||
|
|
||||||
function AbortError (obj, stack) {
|
function AbortError (obj, stack) {
|
||||||
assert(obj, 'The options argument is required')
|
assert(obj, 'The options argument is required');
|
||||||
assert.strictEqual(typeof obj, 'object', 'The options argument has to be of type object')
|
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', {
|
Object.defineProperty(this, 'message', {
|
||||||
value: obj.message || '',
|
value: obj.message || '',
|
||||||
configurable: true,
|
configurable: true,
|
||||||
writable: true
|
writable: true
|
||||||
});
|
});
|
||||||
if (stack || stack === undefined) {
|
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()) {
|
for (var keys = Object.keys(obj), key = keys.pop(); key; key = keys.pop()) {
|
||||||
this[key] = obj[key];
|
this[key] = obj[key];
|
||||||
@@ -24,10 +24,10 @@ function AbortError (obj, stack) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function AggregateError (obj) {
|
function AggregateError (obj) {
|
||||||
assert(obj, 'The options argument is required')
|
assert(obj, 'The options argument is required');
|
||||||
assert.strictEqual(typeof obj, 'object', 'The options argument has to be of type object')
|
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', {
|
Object.defineProperty(this, 'message', {
|
||||||
value: obj.message || '',
|
value: obj.message || '',
|
||||||
configurable: true,
|
configurable: true,
|
||||||
|
Reference in New Issue
Block a user