Skip to content

Commit

Permalink
Making indentation a bit less worse
Browse files Browse the repository at this point in the history
  • Loading branch information
hmelder committed Oct 25, 2024
1 parent 38b3f2b commit 2c0d86b
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions Source/NSUserDefaults.m
Original file line number Diff line number Diff line change
Expand Up @@ -1518,13 +1518,14 @@ - (void) removeObjectForKey: (NSString*)defaultName

if (nil != pd)
{
if ([pd setObject: nil forKey: defaultName])
if ([pd setObject: nil forKey: defaultName])
{
id new;
[self _changePersistentDomain: processName];
new = [self objectForKey: defaultName];
[self _notifyObserversOfChangeForKey: defaultName oldValue:old newValue: new];
} else {
id new;
[self _changePersistentDomain: processName];
new = [self objectForKey: defaultName];
[self _notifyObserversOfChangeForKey: defaultName oldValue:old newValue: new];
}
else {
// We always notify observers of a change, even if the value
// itself is unchanged.
[[NSNotificationCenter defaultCenter]
Expand Down

0 comments on commit 2c0d86b

Please sign in to comment.