Skip to content

Commit

Permalink
chore: fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanFlurry committed Mar 6, 2024
1 parent df4ff29 commit f2ac3c3
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/build/gen.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { dedent } from "./deps.ts";
import { dirname, join, relative } from "../deps.ts";
import { dirname, join } from "../deps.ts";
import {
Module,
moduleGenPath,
Expand Down
4 changes: 2 additions & 2 deletions src/build/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ const WORKER_POOL = createWorkerPool<WorkerRequest, WorkerResponse>({

// TODO: This function is sync
export async function compileSchema(
project: Project,
module: Module,
_project: Project,
_module: Module,
script: Script,
): Promise<void> {
const res = await runJob(WORKER_POOL, { script });
Expand Down
2 changes: 1 addition & 1 deletion src/migrate/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export type ForEachPrismaSchemaCallback = (

/** Prepares all databases and calls a callback once prepared. */
export async function forEachDatabase(
project: Project,
_project: Project,
modules: Module[],
callback: ForEachDatabaseCallback,
) {
Expand Down
1 change: 0 additions & 1 deletion src/types/case_conversions.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
type SplitChar = '_' | '-';
const SPLIT_CHARS: SplitChar[] = ['-', '_'];

type BeforeFirstSplit<T extends string> = T extends `${infer F}${SplitChar}${string}`
? F extends `${string}${SplitChar}${string}`
Expand Down
2 changes: 1 addition & 1 deletion src/utils/postgres_daemon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Project } from "../project/mod.ts";
const CONTAINER_NAME = "opengb-postgres";
const VOLUME_NAME = "opengb-postgres-data";

export async function ensurePostgresRunning(project: Project) {
export async function ensurePostgresRunning(_project: Project) {
// Validate Docker is installed
const versionOutput = await new Deno.Command("docker", {
args: ["version"],
Expand Down

0 comments on commit f2ac3c3

Please sign in to comment.