Skip to content

Conversation

Copy link

Copilot AI commented Feb 2, 2026

The CI lint check was failing due to an unused adapterError variable in a catch block in PrismaStorageAdapter.ts.

Changes

  • Prefixed unused catch variable with underscore: catch (adapterError)catch (_adapterError)

This follows the standard convention for intentionally unused variables and satisfies Deno's no-unused-vars lint rule.

} catch (_adapterError) {
    // Fall back to standard Prisma client if adapter fails
    this.logger.warn('Failed to initialize pg adapter, falling back to standard client');
    this.prisma = new PrismaClient({
        datasources: {
            db: { url: databaseUrl },
        },
    });
}

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: jaypatrick <1800595+jaypatrick@users.noreply.github.com>
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Feb 2, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
adblock-compiler 2138d92 Feb 02 2026, 04:25 AM

Copilot AI changed the title [WIP] Add PostgreSQL support for Prisma storage Fix lint error: prefix unused catch variable with underscore Feb 2, 2026
Copilot AI requested a review from jaypatrick February 2, 2026 04:25
@jaypatrick jaypatrick marked this pull request as ready for review February 2, 2026 04:26
@jaypatrick jaypatrick merged commit 15b7513 into feature/prisma-postgresql-support Feb 2, 2026
1 check passed
@jaypatrick jaypatrick deleted the copilot/sub-pr-245 branch February 2, 2026 04:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants