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:
committed by
Peter Steinberger
parent
008e4804a6
commit
5e1a2ea019
@@ -239,7 +239,7 @@ describe("loginGeminiCliOAuth", () => {
|
|||||||
"GOOGLE_CLOUD_PROJECT_ID",
|
"GOOGLE_CLOUD_PROJECT_ID",
|
||||||
] as const;
|
] as const;
|
||||||
|
|
||||||
function getExpectedPlatform(): "WINDOWS" | "MACOS" | "LINUX" | "PLATFORM_UNSPECIFIED" {
|
function getExpectedPlatform(): "WINDOWS" | "MACOS" | "PLATFORM_UNSPECIFIED" {
|
||||||
if (process.platform === "win32") {
|
if (process.platform === "win32") {
|
||||||
return "WINDOWS";
|
return "WINDOWS";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -224,7 +224,7 @@ function generatePkce(): { verifier: string; challenge: string } {
|
|||||||
return { verifier, challenge };
|
return { verifier, challenge };
|
||||||
}
|
}
|
||||||
|
|
||||||
function resolvePlatform(): "WINDOWS" | "MACOS" | "LINUX" | "PLATFORM_UNSPECIFIED" {
|
function resolvePlatform(): "WINDOWS" | "MACOS" | "PLATFORM_UNSPECIFIED" {
|
||||||
if (process.platform === "win32") {
|
if (process.platform === "win32") {
|
||||||
return "WINDOWS";
|
return "WINDOWS";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user