GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

src/store/configureStore.js   A
last analyzed

Complexity

Total Complexity 3
Complexity/F 1.5

Size

Lines of Code 22
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 4
Bugs 0 Features 3
Metric Value
cc 0
wmc 3
c 4
b 0
f 3
nc 1
mnd 1
bc 3
fnc 2
dl 0
loc 22
rs 10
bpm 1.5
cpm 1.5
noi 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A configureStore.js ➔ configureStore 0 16 2
1
import { compose, createStore, applyMiddleware } from 'redux';
2
import rootReducer from '../reducers';
3
import thunk from 'redux-thunk';
4
5
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
6
7
export default function configureStore(initialState) {
8
    const store = createStore(rootReducer, initialState, composeEnhancers(
9
        applyMiddleware(
10
            thunk
11
        )
12
    ));
13
14
    if (module.hot) {
15
        module.hot.accept('../reducers', () => {
16
            const nextReducer = require('../reducers');
17
            store.replaceReducer(nextReducer);
18
        });
19
    }
20
21
    return store;
22
}
23