Prune unnecessary code, clarify comment

This commit is contained in:
Bjorn Winckler
2009-01-07 20:19:44 +01:00
parent 354968a9b9
commit e5e129b933
+4 -6
View File
@@ -1286,12 +1286,10 @@ fsEventCallback(ConstFSEventStreamRef streamRef,
}
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);