cnap-cobre/synapse

View on GitHub
frontend/src/util/FileIconResolver.js

Summary

Maintainability
A
35 mins
Test Coverage

Showing 1 of 1 total issue

Function resolve has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
Open

function resolve(item) {
for (const type of fileExtensionMappings) {
if (Object.prototype.hasOwnProperty.call(type, 'type') && type.type !== item.type) {
continue;
}
Severity: Minor
Found in frontend/src/util/FileIconResolver.js - About 35 mins to fix
Category
Status