Don't cache the description of exceptions.
This was pretty pointless, as it's usually only used once.
This commit is contained in:
parent
644461e602
commit
eff94d1c96
1 changed files with 3 additions and 7 deletions
|
@ -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
|
||||
|
|
Reference in a new issue