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
|
- (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
|
||||||
|
|
Reference in a new issue