1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-07 13:22:56 +03:00

Remove old emitter style

This commit is contained in:
Ruben Bridgewater
2016-12-17 18:10:14 +01:00
committed by Ruben Bridgewater
parent 78187142cb
commit 912b89ca36

View File

@@ -7,11 +7,6 @@ var fs = require('fs');
var path = require('path');
var util = require('util');
// Newer Node.js versions > 0.10 return the EventEmitter right away and using .EventEmitter was deprecated
if (typeof EventEmitter !== 'function') {
EventEmitter = EventEmitter.EventEmitter;
}
function once (cb) {
var called = false;
return function () {