Skip to content

Commit 0ff1392

Browse files
committed
SourceKit: Fix an unused variable warning in XPCService.cpp.
1 parent 76b2a46 commit 0ff1392

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tools/SourceKit/tools/sourcekitd/bin/XPC/Service/XPCService.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,8 +291,7 @@ static void sourcekitdServer_peer_event_handler(xpc_connection_t peer,
291291
} else {
292292
dispatch_async(requestQueue, handler);
293293
}
294-
} else if (xpc_object_t contents =
295-
xpc_dictionary_get_value(event, "ping")) {
294+
} else if (xpc_dictionary_get_value(event, "ping") != nullptr) {
296295
// Ping back.
297296
xpc_object_t reply = xpc_dictionary_create_reply(event);
298297
xpc_release(event);

0 commit comments

Comments
 (0)