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';
2222 * @returns {function } logger middleware
2323 */
2424function directlyApplied ( options ) {
25- return options . getState && options . dispatch ;
25+ return ! ! ( options . getState && options . dispatch ) ;
2626}
2727
2828function noLogger ( options ) {
29- return typeof options . logger === 'undefined' ;
29+ return ! options . logger ;
3030}
3131
3232function shouldNotLog ( { predicate } , getState , action ) {
33- return typeof predicate === 'function' && ! predicate ( getState , action ) ;
33+ return ! ! ( typeof predicate === 'function' && ! predicate ( getState , action ) ) ;
3434}
3535
3636function shouldDiff ( { diff, diffPredicate } , getState , action ) {
37- return diff && typeof diffPredicate === 'function' && diffPredicate ( getState , action ) ;
37+ return ! ! ( diff && typeof diffPredicate === 'function' && diffPredicate ( getState , action ) ) ;
3838}
3939
4040function emptyLogger ( ) {
You can’t perform that action at this time.
0 commit comments