Skip to content

Commit dcfa9d4

Browse files
Fix for pull request finding 'Equals on incomparable types'
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
1 parent 6593665 commit dcfa9d4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/github/copilot/sdk/CopilotSession.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,8 @@ private void executePermissionAndRespondAsync(String requestId, PermissionReques
710710
invocation.setSessionId(sessionId);
711711
handler.handle(permissionRequest, invocation).thenAccept(result -> {
712712
try {
713-
if (PermissionRequestResultKind.NO_RESULT.equals(result.getKind())) {
713+
PermissionRequestResultKind kind = PermissionRequestResultKind.valueOf(result.getKind());
714+
if (PermissionRequestResultKind.NO_RESULT.equals(kind)) {
714715
// Handler explicitly abstains — leave the request unanswered
715716
// so another client can handle it.
716717
return;

0 commit comments

Comments
 (0)