Skip to content

Commit 41f0403

Browse files
committed
fix(dev): change number to int for iterations number
1 parent be9f818 commit 41f0403

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonqFeatureDev/controller/FeatureDevControllerExtensions.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,10 @@ private suspend fun disposeToken(
158158
state: SessionState,
159159
messenger: MessagePublisher,
160160
tabId: String,
161-
remainingIterations: Number?,
162-
totalIterations: Number?,
161+
remainingIterations: Int?,
162+
totalIterations: Int?,
163163
) {
164-
if (remainingIterations !== null && remainingIterations.toInt() <= 0) {
164+
if (remainingIterations !== null && remainingIterations <= 0) {
165165
messenger.sendAnswer(
166166
tabId = tabId,
167167
messageType = FeatureDevMessageType.Answer,

0 commit comments

Comments
 (0)