Skip to content

Commit ace19b8

Browse files
committed
noLogger -> hasLogger
1 parent e6c039a commit ace19b8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ function directlyApplied(options) {
2525
return !!(options.getState && options.dispatch);
2626
}
2727

28-
function noLogger(options) {
29-
return !options.logger;
28+
function hasLogger(options) {
29+
return options.logger;
3030
}
3131

3232
function shouldNotLog({ predicate }, getState, action) {
@@ -72,7 +72,7 @@ function createLogger(options = {}) {
7272
const loggerOptions = Object.assign({}, defaults, options);
7373

7474
// Return if 'console' object is not defined
75-
if (noLogger(loggerOptions)) return emptyLogger();
75+
if (!hasLogger(loggerOptions)) return emptyLogger();
7676

7777
return ({ getState }) => next => (action) => {
7878
// Exit early if predicate function returns 'false'

0 commit comments

Comments
 (0)