Skip to content

Commit cebd422

Browse files
prettier
1 parent 803e055 commit cebd422

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

app/api/upload/route.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@ cloudinary.config({
1414
async function cloudinaryToSVG(imageUrl: string) {
1515
const svgString: string = await new Promise((resolve, reject) => {
1616
potrace.posterize(imageUrl, (err: unknown, svg: string) => {
17-
if (err) return reject(new Error(`Failed to convert image to SVG: ${(err as Error)?.message}`));
17+
if (err)
18+
return reject(
19+
new Error(
20+
`Failed to convert image to SVG: ${(err as Error)?.message}`,
21+
),
22+
);
1823
resolve(svg);
1924
});
2025
});

0 commit comments

Comments
 (0)