Skip to content

Commit 4e827d1

Browse files
committed
casting not needed
1 parent 545b122 commit 4e827d1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pxtlib/browserutils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1455,7 +1455,7 @@ namespace pxt.BrowserUtils {
14551455
if (typeof window === "undefined") return undefined;
14561456
const query = pxt.Util.parseQueryString(window.location.search || "");
14571457
const value = (query["useCopilotServer"] || "").toLowerCase();
1458-
return value === "ppe" || value === "prod" ? (value as "ppe" | "prod") : undefined;
1458+
return value === "ppe" || value === "prod" ? value : undefined;
14591459
}
14601460

14611461
export function appendCopilotServerQueryParam(url: string): string {

0 commit comments

Comments
 (0)