File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -22,19 +22,19 @@ import defaults from './defaults';
22
22
* @returns {function } logger middleware
23
23
*/
24
24
function directlyApplied ( options ) {
25
- return options . getState && options . dispatch ;
25
+ return ! ! ( options . getState && options . dispatch ) ;
26
26
}
27
27
28
28
function noLogger ( options ) {
29
- return typeof options . logger === 'undefined' ;
29
+ return ! options . logger ;
30
30
}
31
31
32
32
function shouldNotLog ( { predicate } , getState , action ) {
33
- return typeof predicate === 'function' && ! predicate ( getState , action ) ;
33
+ return ! ! ( typeof predicate === 'function' && ! predicate ( getState , action ) ) ;
34
34
}
35
35
36
36
function shouldDiff ( { diff, diffPredicate } , getState , action ) {
37
- return diff && typeof diffPredicate === 'function' && diffPredicate ( getState , action ) ;
37
+ return ! ! ( diff && typeof diffPredicate === 'function' && diffPredicate ( getState , action ) ) ;
38
38
}
39
39
40
40
function emptyLogger ( ) {
You can’t perform that action at this time.
0 commit comments