devlato/vectorizer

View on GitHub
src/index.tsx

Summary

Maintainability
A
35 mins
Test Coverage

Showing 1 of 1 total issue

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

const loadImageData = async (url: string, crossOrigin = false): Promise<ImageData> =>
new Promise((resolve, reject) => {
try {
const img = new Image();
 
 
Severity: Minor
Found in src/index.tsx - About 35 mins to fix

There are no issues that match your filters.

Category
Status