Skip to content

Commit 7b7da92

Browse files
committed
fix(dev): apply fixes based on new eslint rules
1 parent 12e1376 commit 7b7da92

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed

packages/core/src/amazonqFeatureDev/session/session.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -132,23 +132,12 @@ export class Session {
132132
telemetry: this.telemetry,
133133
tokenSource: this.state.tokenSource,
134134
uploadHistory: this.state.uploadHistory,
135-
tokenSource: this.state.tokenSource,
136135
})
137136

138137
if (resp.nextState) {
139-
// Cancel the request before moving to a new state
140-
<<<<<<< HEAD
141-
<<<<<<< HEAD
142138
if (!this.state?.tokenSource?.token.isCancellationRequested) {
143139
this.state?.tokenSource?.cancel()
144140
}
145-
=======
146-
this.state?.tokenSource?.cancel()
147-
>>>>>>> 4742b3c59 (refactor(amazonqFeatureDev): include updated rts model)
148-
=======
149-
if (!this.state?.tokenSource?.token.isCancellationRequested) this.state?.tokenSource?.cancel()
150-
>>>>>>> e6782b66f (fix(amazonqFeatureDev): create a new token to stop and iterate in the same session)
151-
152141
// Move to the next state
153142
this._state = resp.nextState
154143
}

packages/core/src/amazonqFeatureDev/session/sessionState.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -535,11 +535,7 @@ export class PrepareCodeGenState implements SessionState {
535535
span
536536
)
537537
const uploadId = randomUUID()
538-
const {
539-
uploadUrl,
540-
uploadId: returnedUploadId,
541-
kmsKeyArn,
542-
} = await this.config.proxyClient.createUploadUrl(
538+
const { uploadUrl, kmsKeyArn } = await this.config.proxyClient.createUploadUrl(
543539
this.config.conversationId,
544540
zipFileChecksum,
545541
zipFileBuffer.length,

0 commit comments

Comments
 (0)