Skip to content

Commit 5336198

Browse files
committed
const curLen
1 parent 67adfab commit 5336198

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export async function fetchSupplementalContextForSrc(
105105

106106
function addToResult(items: CodeWhispererSupplementalContextItem[]) {
107107
for (const item of items) {
108-
let curLen = result.reduce((acc, i) => acc + i.content.length, 0)
108+
const curLen = result.reduce((acc, i) => acc + i.content.length, 0)
109109
if (curLen + item.content.length < supplementalContextMaxTotalLength) {
110110
result.push(item)
111111
}

0 commit comments

Comments
 (0)