Skip to content

Commit 000b0e6

Browse files
committed
Fixing lint erroras
1 parent 196106c commit 000b0e6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonqCodeTest/CodeWhispererUTGChatManager.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import kotlinx.coroutines.CoroutineScope
1616
import kotlinx.coroutines.Job
1717
import kotlinx.coroutines.delay
1818
import kotlinx.coroutines.launch
19-
import software.amazon.awssdk.core.exception.SdkServiceException
2019
import software.amazon.awssdk.services.codewhispererruntime.model.GetTestGenerationResponse
2120
import software.amazon.awssdk.services.codewhispererruntime.model.Range
2221
import software.amazon.awssdk.services.codewhispererruntime.model.StartTestGenerationResponse

plugins/amazonq/codewhisperer/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codewhisperer/util/CodeWhispererZipUploadManager.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,10 @@ class CodeWhispererZipUploadManager(private val project: Project) {
208208
}
209209

210210
// If we've exhausted all retries, handle the last exception
211-
val errorMessage = getTelemetryErrorMessage(lastException!!, featureUseCase)
211+
val errorMessage = getTelemetryErrorMessage(
212+
lastException ?: Exception("Unknown error"),
213+
featureUseCase
214+
)
212215
when (featureUseCase) {
213216
CodeWhispererConstants.FeatureName.CODE_REVIEW ->
214217
codeScanServerException("CreateUploadUrlException after $maxRetryAttempts attempts: $errorMessage")

0 commit comments

Comments
 (0)