small code cleanup for CastSink
This commit is contained in:
parent
3fbfd0f03d
commit
9753bb3478
|
@ -290,11 +290,10 @@ class CastSink : public Sink, public virtual Reporter
|
|||
inline virtual bool
|
||||
isOpen ( void ) const throw ()
|
||||
{
|
||||
Sink *s = getSink();
|
||||
if (s)
|
||||
return getSink()->isOpen();
|
||||
else
|
||||
return false;
|
||||
if( !getSink() ) {
|
||||
return false;
|
||||
}
|
||||
return getSink()->isOpen();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue