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
{
if (_description != nil)
return _description;
_description = [[OFString alloc] initWithFormat:
@"Invalid certificate! Reason: %@", _reason];
return _description;
return [OFString stringWithFormat:
@"Invalid certificate in class %@! Reason: %@", [self inClass],
_reason];
}
- (OFString*)reason