Don't cache the description of exceptions.

This was pretty pointless, as it's usually only used once.
This commit is contained in:
Jonathan Schleifer 2013-02-14 00:14:27 +01:00
parent 644461e602
commit eff94d1c96

View file

@ -67,13 +67,9 @@
- (OFString*)description - (OFString*)description
{ {
if (_description != nil) return [OFString stringWithFormat:
return _description; @"Invalid certificate in class %@! Reason: %@", [self inClass],
_reason];
_description = [[OFString alloc] initWithFormat:
@"Invalid certificate! Reason: %@", _reason];
return _description;
} }
- (OFString*)reason - (OFString*)reason