A little code cleanup to not create an script bridging object just to feed
the private object back to another internal function.



git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@107118 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/API/SBTarget.cpp b/source/API/SBTarget.cpp
index ff08689..f964409 100644
--- a/source/API/SBTarget.cpp
+++ b/source/API/SBTarget.cpp
@@ -110,11 +110,8 @@
     SBProcess sb_process;
 
     if (m_opaque_sp)
-    {
-        SBListener sb_listener (m_opaque_sp->GetDebugger().GetListener());
-        if (sb_listener.IsValid())
-            sb_process.SetProcess (m_opaque_sp->CreateProcess (*sb_listener));
-    }
+        sb_process.SetProcess (m_opaque_sp->CreateProcess (m_opaque_sp->GetDebugger().GetListener()));
+
     return sb_process;
 }