Skip to content

Commit 6593665

Browse files
Avoid ambiguity in comparison.
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
1 parent 75c7ee1 commit 6593665

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ private void handlePermissionRequest(JsonRpcClient rpc, String requestId, JsonNo
193193

194194
session.handlePermissionRequest(permissionRequest).thenAccept(result -> {
195195
try {
196-
if (PermissionRequestResultKind.NO_RESULT.equals(result.getKind())) {
196+
if (PermissionRequestResultKind.NO_RESULT.name().equals(result.getKind())) {
197197
// Handler explicitly abstains — do not send a response,
198198
// allowing another client to handle the request.
199199
return;

0 commit comments

Comments
 (0)