Skip to content

Commit

Permalink
Prune unnecessary code, clarify comment
Browse files Browse the repository at this point in the history
  • Loading branch information
b4winckler committed Jan 7, 2009
1 parent 354968a commit e5e129b
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/MacVim/MMAppController.m
Expand Up @@ -1286,12 +1286,10 @@ - (int)launchVimProcessWithArguments:(NSArray *)args
}

if (-1 != pid) {
// NOTE: If the process has no arguments, then add a null argument to
// the pidArguments dictionary. This is later used to detect that a
// process without arguments is being launched.
if (!args)
[pidArguments setObject:[NSNull null]
forKey:[NSNumber numberWithInt:pid]];
// Add a null argument to the pidArguments dictionary. This is later
// used to detect that a process without arguments is being launched.
[pidArguments setObject:[NSNull null]
forKey:[NSNumber numberWithInt:pid]];
} else {
NSLog(@"WARNING: %s%@ failed (useLoginShell=%d)", _cmd, args,
useLoginShell);
Expand Down

0 comments on commit e5e129b

Please sign in to comment.