Skip to content

Commit

Permalink
fix missing lint for #3505
Browse files Browse the repository at this point in the history
  • Loading branch information
trajan0x committed Feb 6, 2025
1 parent b656ac6 commit 5ef0dd7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/rest-api/src/routes/addressIconRoute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,10 @@ router.get('/:chainId/:address.svg', async (req, res) => {
const contentType = response.headers.get('content-type') || 'image/svg+xml'

// Only process SVG files if headers are requested
const processedBuffer = contentType === 'image/svg+xml' && addHeaders
? addSvgHeaderIfMissing(buffer)
: Buffer.from(buffer)
const processedBuffer =
contentType === 'image/svg+xml' && addHeaders
? addSvgHeaderIfMissing(buffer)
: Buffer.from(buffer)

// Set cache headers (cache for 1 week)
res.set({
Expand Down

0 comments on commit 5ef0dd7

Please sign in to comment.