Skip to content

Commit 93dba46

Browse files
Use IGitHubClient interface instead of concrete class
Co-authored-by: ulrikandersen <11440456+ulrikandersen@users.noreply.github.com>
1 parent a0096bb commit 93dba46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/features/diff/data/OasDiffCalculator.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { execFileSync } from "child_process"
22
import { DiffChange } from "@/features/diff/domain/DiffChange"
3-
import { GitHubClient } from "@/common"
3+
import type { IGitHubClient } from "@/common"
44
import { DiffResult, IOasDiffCalculator } from "./IOasDiffCalculator"
55

66
/**
@@ -23,7 +23,7 @@ function isValidGitHubUrl(url: string): boolean {
2323
}
2424

2525
export class OasDiffCalculator implements IOasDiffCalculator {
26-
constructor(private readonly githubClient: GitHubClient) {}
26+
constructor(private readonly githubClient: IGitHubClient) {}
2727

2828
async calculateDiff(
2929
owner: string,

0 commit comments

Comments
 (0)