Skip to content

Commit 7b76bfc

Browse files
author
Ruben Bridgewater
committed
Add istanbul ignore statement for the hiredis warnings
1 parent 1a974c6 commit 7b76bfc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/parser.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ function JavascriptRedisParser (options) {
210210
throw new TypeError('Please provide all return functions while initiating the parser')
211211
}
212212
if (options.name === 'hiredis') {
213+
/* istanbul ignore next: hiredis is only supported for legacy usage */
213214
try {
214215
var Hiredis = require('../test/hiredis')
215216
console.error(new TypeError('Using the hiredis parser is discouraged. Please remove the name option.').stack.replace('Error', 'Warning'))

0 commit comments

Comments
 (0)