Skip to content

Commit 844b36d

Browse files
committed
fix: remove dead code
1 parent 0a38c54 commit 844b36d

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

packages/cli/src/cli/cmd/ci/index.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import path from "path";
21
import { Command } from "interactive-commander";
32
import createOra from "ora";
43
import { getSettings } from "../../utils/settings";
@@ -7,7 +6,6 @@ import { IIntegrationFlow } from "./flows/_base";
76
import { PullRequestFlow } from "./flows/pull-request";
87
import { InBranchFlow } from "./flows/in-branch";
98
import { getPlatformKit } from "./platforms";
10-
import { getConfig } from "../../utils/config";
119

1210
interface CIOptions {
1311
parallel?: boolean;
@@ -72,18 +70,6 @@ export default new Command()
7270
parseBooleanArg,
7371
)
7472
.action(async (options: CIOptions) => {
75-
const configDir = options.workingDirectory
76-
? path.resolve(process.cwd(), options.workingDirectory)
77-
: process.cwd();
78-
const originalCwd = process.cwd();
79-
let config;
80-
try {
81-
process.chdir(configDir);
82-
config = getConfig(false);
83-
} finally {
84-
process.chdir(originalCwd);
85-
}
86-
8773
const settings = getSettings(options.apiKey);
8874

8975
if (!settings.auth.apiKey) {

0 commit comments

Comments
 (0)