Skip to content

Commit 12b8d66

Browse files
AllyWkairu-ms
authored andcommitted
remove unused
1 parent 5b1f2f1 commit 12b8d66

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/typespec-aaz/src/utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { Program } from "@typespec/compiler";
22
import { HttpOperation, isSharedRoute, } from "@typespec/http";
33

4+
45
function getPathWithoutQuery(path: string): string {
56
// strip everything from the key including and after the ?
67
return path.replace(/\/?\?.*/, "");

src/web/src/typespec/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export async function getTypespecRPResources(resourceProviderUrl: string) {
2828
for (const entryFile of entryFiles) {
2929
// cache entry files
3030
await host.stat(entryFile);
31-
const rt = await host.compiler.compile(host, entryFile, {
31+
await host.compiler.compile(host, entryFile, {
3232
outputDir: outputDir,
3333
emit: ["@azure-tools/typespec-aaz"],
3434
options: {

0 commit comments

Comments
 (0)