Skip to content

Commit b88a7bf

Browse files
committed
remove redundant await
1 parent 4aef3e7 commit b88a7bf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/http-data-source.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ export abstract class HTTPDataSource<TContext = any> extends DataSource {
167167
path: string,
168168
requestOptions?: RequestOptions,
169169
): Promise<Response<TResult>> {
170-
return await this.request<TResult>({
170+
return this.request<TResult>({
171171
headers: {},
172172
...requestOptions,
173173
method: 'GET',
@@ -180,7 +180,7 @@ export abstract class HTTPDataSource<TContext = any> extends DataSource {
180180
path: string,
181181
requestOptions?: RequestOptions,
182182
): Promise<Response<TResult>> {
183-
return await this.request<TResult>({
183+
return this.request<TResult>({
184184
headers: {},
185185
...requestOptions,
186186
method: 'POST',
@@ -193,7 +193,7 @@ export abstract class HTTPDataSource<TContext = any> extends DataSource {
193193
path: string,
194194
requestOptions?: RequestOptions,
195195
): Promise<Response<TResult>> {
196-
return await this.request<TResult>({
196+
return this.request<TResult>({
197197
headers: {},
198198
...requestOptions,
199199
method: 'DELETE',
@@ -206,7 +206,7 @@ export abstract class HTTPDataSource<TContext = any> extends DataSource {
206206
path: string,
207207
requestOptions?: RequestOptions,
208208
): Promise<Response<TResult>> {
209-
return await this.request<TResult>({
209+
return this.request<TResult>({
210210
headers: {},
211211
...requestOptions,
212212
method: 'PUT',
@@ -291,7 +291,7 @@ export abstract class HTTPDataSource<TContext = any> extends DataSource {
291291

292292
const cacheKey = this.onCacheKeyCalculation(request)
293293

294-
// check if we have any GET call in the cache and respond immediatly
294+
// check if we have any GET call in the cache to respond immediatly
295295
if (request.method === 'GET') {
296296
// Memoize GET calls for the same data source instance
297297
// a single instance of the data sources is scoped to one graphql request

0 commit comments

Comments
 (0)