diff --git a/lib/spinning_cursor.rb b/lib/spinning_cursor.rb
index <HASH>..<HASH> 100644
--- a/lib/spinning_cursor.rb
+++ b/lib/spinning_cursor.rb
@@ -110,9 +110,7 @@ module SpinningCursor
   def do_exec_time
     if @curs.alive?
       @start = Time.now
-      if block_given?
-        yield
-      end
+      yield if block_given?
     end
     @finish = Time.now
     @elapsed = @finish - @start
Change for the online version of 'if'