From 9753bb3478c21bddab5b9a101319fcdbcdfd69fc Mon Sep 17 00:00:00 2001 From: "rafael@riseup.net" Date: Sat, 18 May 2013 19:25:20 +0000 Subject: [PATCH] small code cleanup for CastSink --- darkice/trunk/src/CastSink.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/darkice/trunk/src/CastSink.h b/darkice/trunk/src/CastSink.h index 366e7bc..69ddd79 100644 --- a/darkice/trunk/src/CastSink.h +++ b/darkice/trunk/src/CastSink.h @@ -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(); } /**