small code cleanup for CastSink

This commit is contained in:
rafael@riseup.net 2013-05-18 19:25:20 +00:00
parent 3fbfd0f03d
commit 9753bb3478
1 changed files with 4 additions and 5 deletions

View File

@ -290,11 +290,10 @@ class CastSink : public Sink, public virtual Reporter
inline virtual bool inline virtual bool
isOpen ( void ) const throw () isOpen ( void ) const throw ()
{ {
Sink *s = getSink(); if( !getSink() ) {
if (s) return false;
return getSink()->isOpen(); }
else return getSink()->isOpen();
return false;
} }
/** /**