You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
chore: refactor main code base into smaller parts
This commit is contained in:
@@ -1,12 +1,15 @@
|
||||
'use strict'
|
||||
|
||||
const index = require('../')
|
||||
var index
|
||||
function lazyIndex () {
|
||||
return index || require('../')
|
||||
}
|
||||
|
||||
/**
|
||||
* @description Print a debug statement if in debug mode
|
||||
*/
|
||||
function debug () {
|
||||
if (index.debugMode) {
|
||||
if (lazyIndex().debugMode) {
|
||||
console.error.apply(null, arguments)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user