Skip to content

Commit

Permalink
remove need to typecast
Browse files Browse the repository at this point in the history
  • Loading branch information
leahecole committed Sep 5, 2023
1 parent a2b9cc9 commit c6cccb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/createApiCall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ export function createApiCall(
callback?: APICallback
) => {
let currentApiCaller = apiCaller;
const gaxStreamingRetries = (currentApiCaller as StreamingApiCaller)
.descriptor?.gaxStreamingRetries;

let thisSettings: CallSettings;
if (currentApiCaller instanceof StreamingApiCaller) {
const gaxStreamingRetries = currentApiCaller.descriptor?.gaxStreamingRetries;

Check failure on line 78 in src/createApiCall.ts

View workflow job for this annotation

GitHub Actions / lint-gax

Insert `⏎·······`
// If Gax streaming retries are enabled, check settings passed at call time and convert parameters if needed
const thisSettingsTemp = checkRetryOptions(
callOptions,
Expand Down

0 comments on commit c6cccb9

Please sign in to comment.