Skip to content

Commit 0c41256

Browse files
committed
implement small manual fixes
1 parent 4776cff commit 0c41256

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

packages/core/src/codewhispererChat/controllers/chat/chatRequest/converter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export function triggerPayloadToChatRequest(triggerPayload: TriggerPayload): { c
4444
if (triggerPayload.filePath !== undefined && triggerPayload.filePath !== '') {
4545
const documentSymbolFqns: DocumentSymbol[] = []
4646
if (triggerPayload.codeQuery?.fullyQualifiedNames?.used) {
47-
for (const fqn of triggerPayload.codeQuery?.fullyQualifiedNames?.used) {
47+
for (const fqn of triggerPayload.codeQuery.fullyQualifiedNames.used) {
4848
const elem = {
4949
name: fqn.symbol?.join('.') ?? '',
5050
type: SymbolType.USAGE,

packages/core/src/shared/extensions/git.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,10 @@ export class GitExtension {
209209
public async getRemotes(): Promise<GitTypes.Remote[]> {
210210
const api = await this.validateApi('git: api is disabled, returning empty array of remotes')
211211
const remotes: GitTypes.Remote[] = []
212-
for (const repo of api?.repositories) {
213-
remotes.push(...repo.state.remotes)
212+
if (api) {
213+
for (const repo of api.repositories) {
214+
remotes.push(...repo.state.remotes)
215+
}
214216
}
215217

216218
return remotes

packages/core/src/test/shared/crashMonitoring.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export const crashMonitoringTest = async () => {
8686
// clean up all running instances
8787
if (spawnedExtensions) {
8888
for (const e of spawnedExtensions) {
89-
e.crash()
89+
void e.crash()
9090
}
9191
}
9292
sandbox.restore()

0 commit comments

Comments
 (0)