Skip to content

Commit d9ae0d7

Browse files
committed
fix formatting issues
1 parent fbb8101 commit d9ae0d7

File tree

2 files changed

+11
-13
lines changed

2 files changed

+11
-13
lines changed

Diff for: packages/openapi-fetch/src/index.js

+8-8
Original file line numberDiff line numberDiff line change
@@ -300,28 +300,28 @@ class PathCallForwarder {
300300

301301
GET = (init) => {
302302
return this.client.GET(this.url, init);
303-
}
303+
};
304304
PUT = (init) => {
305305
return this.client.PUT(this.url, init);
306-
}
306+
};
307307
POST = (init) => {
308308
return this.client.POST(this.url, init);
309-
}
309+
};
310310
DELETE = (init) => {
311311
return this.client.DELETE(this.url, init);
312-
}
312+
};
313313
OPTIONS = (init) => {
314314
return this.client.OPTIONS(this.url, init);
315-
}
315+
};
316316
HEAD = (init) => {
317317
return this.client.HEAD(this.url, init);
318-
}
318+
};
319319
PATCH = (init) => {
320320
return this.client.PATCH(this.url, init);
321-
}
321+
};
322322
TRACE = (init) => {
323323
return this.client.TRACE(this.url, init);
324-
}
324+
};
325325
}
326326

327327
class PathClientProxyHandler {

Diff for: packages/openapi-fetch/test/path-based-client/path-based-client.test.ts

+3-5
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,13 @@ describe("createPathBasedClient", () => {
8686
return Response.json({});
8787
});
8888

89-
const getMethodByPathAndMethod = (path: "/posts", method: 'GET') => {
89+
const getMethodByPathAndMethod = (path: "/posts", method: "GET") => {
9090
return client[path][method];
91-
}
91+
};
9292

9393
await getMethodByPathAndMethod("/posts", "GET")();
94-
94+
9595
expect(method).toBe("GET");
9696
});
9797
});
9898
});
99-
100-

0 commit comments

Comments
 (0)