Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
syuilo authored Jul 8, 2023
1 parent d9dd5d1 commit ed055e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/backend/src/misc/is-duplicate-key-value-error.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { QueryFailedError } from "typeorm";
import { QueryFailedError } from 'typeorm';

export function isDuplicateKeyValueError(e: unknown | Error): boolean {
return e instanceof QueryFailedError && e.driverError.code === "23505";
return e instanceof QueryFailedError && e.driverError.code === '23505';
}

0 comments on commit ed055e0

Please sign in to comment.