Skip to content

Commit 23c41c7

Browse files
committed
try without truthy
1 parent 530a77a commit 23c41c7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/core/src/codewhisperer/util/supplementalContext/crossFileContextUtil.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export async function fetchSupplementalContextForSrc(
9999

100100
return result
101101
},
102-
{ timeout: supplementalContextTimeoutInMs, interval: 5, truthy: false }
102+
{ timeout: supplementalContextTimeoutInMs, interval: 5 }
103103
)
104104

105105
return {
@@ -113,7 +113,7 @@ export async function fetchSupplementalContextForSrc(
113113
async function () {
114114
return await fetchOpentabsContext(editor, cancellationToken)
115115
},
116-
{ timeout: supplementalContextTimeoutInMs, interval: 5, truthy: false }
116+
{ timeout: supplementalContextTimeoutInMs, interval: 5 }
117117
)
118118

119119
// global bm25 without repomap
@@ -122,7 +122,7 @@ export async function fetchSupplementalContextForSrc(
122122
async function () {
123123
return await fetchProjectContext(editor, 'bm25')
124124
},
125-
{ timeout: supplementalContextTimeoutInMs, interval: 5, truthy: false }
125+
{ timeout: supplementalContextTimeoutInMs, interval: 5 }
126126
)
127127

128128
const [projectContext, opentabsContext] = await Promise.all([projectBM25Promise, opentabsContextPromise])
@@ -144,7 +144,7 @@ export async function fetchSupplementalContextForSrc(
144144
async function () {
145145
return await fetchProjectContext(editor, 'default')
146146
},
147-
{ timeout: supplementalContextTimeoutInMs, interval: 5, truthy: false }
147+
{ timeout: supplementalContextTimeoutInMs, interval: 5 }
148148
)
149149

150150
const [projectContext, opentabsContext] = await Promise.all([

0 commit comments

Comments
 (0)