Remover app extra curly braces


It appears in the AppDelegate code, that there are extraneous curly braces.

[dirEntry.parent willChangeValueForKey:@"children"];{ didDelete = [fm removeItemAtURL:dirEntry.fileURL error:&error]; } [dirEntry.parent didChangeValueForKey:@"children"];
Can these be deleted? I removed them from my code and it appears to function properly.


Yep. They’re an affectation to cause a new scope, showing the code that operates under the auspices of that will change value for key. I use it also for CGContext pushes / pops, and things that are covered by a mutex or a lock. Makes it very obvious if some code falls outside of the “protection” zone.