assets/js/api/errorHandler.js   A
last analyzed

Complexity

Total Complexity 2
Complexity/F 2

Size

Lines of Code 7
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 5
c 0
b 0
f 0
dl 0
loc 7
rs 10
wmc 2
mnd 1
bc 1
fnc 1
bpm 1
cpm 2
noi 0
1
2
export default function (error) {
3
    if (error.response.status === 401) {
4
        document.location.href='/login' + document.location.hash;
5
    }
6
7
    return Promise.reject(error);
8
};
9
10