Skip to content

Commit d2072d2

Browse files
committed
refactor: simplify cases
1 parent 2fdbb84 commit d2072d2

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/amazonq/src/app/inline/sessionManager.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,7 @@ export class SessionManager {
5555
}
5656

5757
public getActiveRecommendation(): InlineCompletionItemWithReferences[] {
58-
if (!this.activeSession) {
59-
return []
60-
}
61-
return this.activeSession.suggestions
58+
return this.activeSession?.suggestions ?? []
6259
}
6360

6461
public get acceptedSuggestionCount(): number {

0 commit comments

Comments
 (0)