Skip to content

Commit 855fff6

Browse files
committed
lint
1 parent 16e41dc commit 855fff6

File tree

3 files changed

+28
-16
lines changed

3 files changed

+28
-16
lines changed

apps/array/src/main/services/git/service.ts

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@ export interface GitServiceEvents {
1818

1919
@injectable()
2020
export class GitService extends TypedEventEmitter<GitServiceEvents> {
21-
constructor() {
22-
super();
23-
}
24-
2521
public async detectRepo(
2622
directoryPath: string,
2723
): Promise<DetectRepoResult | null> {
@@ -71,9 +67,13 @@ export class GitService extends TypedEventEmitter<GitServiceEvents> {
7167

7268
emitProgress("cloning", `Starting clone of ${repoUrl}...`);
7369

74-
const gitProcess = spawn("git", ["clone", "--progress", repoUrl, targetPath], {
75-
stdio: ["ignore", "pipe", "pipe"],
76-
});
70+
const gitProcess = spawn(
71+
"git",
72+
["clone", "--progress", repoUrl, targetPath],
73+
{
74+
stdio: ["ignore", "pipe", "pipe"],
75+
},
76+
);
7777

7878
gitProcess.stderr.on("data", (data: Buffer) => {
7979
const output = data.toString();
@@ -107,9 +107,13 @@ export class GitService extends TypedEventEmitter<GitServiceEvents> {
107107

108108
public async getRemoteUrl(directoryPath: string): Promise<string | null> {
109109
try {
110-
const { stdout } = await execFileAsync("git", ["remote", "get-url", "origin"], {
111-
cwd: directoryPath,
112-
});
110+
const { stdout } = await execFileAsync(
111+
"git",
112+
["remote", "get-url", "origin"],
113+
{
114+
cwd: directoryPath,
115+
},
116+
);
113117
return stdout.trim();
114118
} catch {
115119
return null;
@@ -118,9 +122,13 @@ export class GitService extends TypedEventEmitter<GitServiceEvents> {
118122

119123
public async getCurrentBranch(directoryPath: string): Promise<string | null> {
120124
try {
121-
const { stdout } = await execFileAsync("git", ["branch", "--show-current"], {
122-
cwd: directoryPath,
123-
});
125+
const { stdout } = await execFileAsync(
126+
"git",
127+
["branch", "--show-current"],
128+
{
129+
cwd: directoryPath,
130+
},
131+
);
124132
return stdout.trim();
125133
} catch {
126134
return null;

apps/array/src/main/trpc/routers/git.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import {
1111
validateRepoOutput,
1212
} from "../../services/git/schemas.js";
1313
import {
14-
GitServiceEvent,
1514
type GitService,
15+
GitServiceEvent,
1616
} from "../../services/git/service.js";
1717
import { publicProcedure, router } from "../trpc.js";
1818

@@ -33,7 +33,11 @@ export const gitRouter = router({
3333
.input(cloneRepositoryInput)
3434
.output(cloneRepositoryOutput)
3535
.mutation(({ input }) =>
36-
getService().cloneRepository(input.repoUrl, input.targetPath, input.cloneId),
36+
getService().cloneRepository(
37+
input.repoUrl,
38+
input.targetPath,
39+
input.cloneId,
40+
),
3741
),
3842

3943
onCloneProgress: publicProcedure.subscription(async function* (opts) {

apps/array/src/renderer/features/task-detail/stores/taskExecutionStore.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { useSettingsStore } from "@features/settings/stores/settingsStore";
2+
import { trpcVanilla } from "@renderer/trpc/client";
23
import type { Task, WorkspaceMode } from "@shared/types";
34
import { repositoryWorkspaceStore } from "@stores/repositoryWorkspaceStore";
45
import { useTaskDirectoryStore } from "@stores/taskDirectoryStore";
5-
import { trpcVanilla } from "@renderer/trpc/client";
66
import { getTaskRepository } from "@utils/repository";
77
import { create } from "zustand";
88
import { persist } from "zustand/middleware";

0 commit comments

Comments
 (0)