We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ad3166 commit 79b529dCopy full SHA for 79b529d
src/index.js
@@ -25,8 +25,8 @@ function directlyApplied(options) {
25
return !!(options.getState && options.dispatch);
26
}
27
28
-function noLogger(options) {
29
- return !options.logger;
+function hasLogger(options) {
+ return options.logger;
30
31
32
function shouldNotLog({ predicate }, getState, action) {
@@ -75,7 +75,7 @@ function createLogger(options = {}) {
75
};
76
77
// Return if 'console' object is not defined
78
- if (noLogger(loggerOptions)) return emptyLogger();
+ if (!hasLogger(loggerOptions)) return emptyLogger();
79
80
return ({ getState }) => next => (action) => {
81
// Exit early if predicate function returns 'false'
0 commit comments