pinecone-io / pinecone-vercel-starter

Pinecone + Vercel AI SDK Starter
https://pinecone-vercel-example.vercel.app
418 stars 127 forks source link

Clean up throw error syntax #22

Closed zackproser closed 11 months ago

zackproser commented 11 months ago

Problem

Describe the purpose of this change. What problem is being solved and why?

While not technically incorrect, the previous version of this code looked odd to at least two developers.

Solution

Describe the approach you took. Link to any relevant bugs, issues, docs, or other resources.

Removed the extraneous parens and comma.

Type of Change

Test Plan

Describe specific steps for validating this change.

I ran npm run build from project root to ensure there were no build-breaking issues.