bcgov/vue-scaffold

View on GitHub
app/src/components/errorToProblem.js

Summary

Maintainability
A
45 mins
Test Coverage
B
84%

Showing 1 of 1 total issue

Function exports has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
Open

module.exports = function(service, e) {
if (e.response) {
// Handle raw data
let data;
if (typeof e.response.data === 'string' || e.response.data instanceof String) {
Severity: Minor
Found in app/src/components/errorToProblem.js - About 45 mins to fix
Category
Status