From 2055fcb1043c6695226f0f8d1bed9039b277fcfe Mon Sep 17 00:00:00 2001 From: Tae Won Ha Date: Fri, 12 Aug 2016 15:16:43 +0200 Subject: [PATCH] GH-228 Refactor slightly --- SwiftNeoVim/NeoVimAgent.m | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/SwiftNeoVim/NeoVimAgent.m b/SwiftNeoVim/NeoVimAgent.m index 362a47ee..24e14189 100644 --- a/SwiftNeoVim/NeoVimAgent.m +++ b/SwiftNeoVim/NeoVimAgent.m @@ -191,12 +191,7 @@ static CFDataRef local_server_callback(CFMessagePortRef local, SInt32 msgid, CFD } CFDataRef responseData = NULL; - CFStringRef replyMode = NULL; - - // We only expect reply from NeoVimAgentMsgIdDirtyDocs - if (expectsReply) { - replyMode = kCFRunLoopDefaultMode; - } + CFStringRef replyMode = expectsReply ? kCFRunLoopDefaultMode : NULL; SInt32 responseCode = CFMessagePortSendRequest( _remoteServerPort, msgid, (__bridge CFDataRef) data, qTimeout, qTimeout, replyMode, &responseData