mirror of https://github.com/openclaw/openclaw.git
chore: remove unreachable "LINUX" from resolvePlatform return type
Address review feedback: since resolvePlatform() no longer returns "LINUX", remove it from the union type to prevent future confusion.
This commit is contained in:
parent
008e4804a6
commit
5e1a2ea019
|
|
@ -239,7 +239,7 @@ describe("loginGeminiCliOAuth", () => {
|
|||
"GOOGLE_CLOUD_PROJECT_ID",
|
||||
] as const;
|
||||
|
||||
function getExpectedPlatform(): "WINDOWS" | "MACOS" | "LINUX" | "PLATFORM_UNSPECIFIED" {
|
||||
function getExpectedPlatform(): "WINDOWS" | "MACOS" | "PLATFORM_UNSPECIFIED" {
|
||||
if (process.platform === "win32") {
|
||||
return "WINDOWS";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -224,7 +224,7 @@ function generatePkce(): { verifier: string; challenge: string } {
|
|||
return { verifier, challenge };
|
||||
}
|
||||
|
||||
function resolvePlatform(): "WINDOWS" | "MACOS" | "LINUX" | "PLATFORM_UNSPECIFIED" {
|
||||
function resolvePlatform(): "WINDOWS" | "MACOS" | "PLATFORM_UNSPECIFIED" {
|
||||
if (process.platform === "win32") {
|
||||
return "WINDOWS";
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue